Is it possible to use both Room persistence library's @Entity
with AutoValue's @AutoValue
and builder on the same POJO? How should i do it?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Released in 2.1.0-alpha01!
Note that you have to add the @CopyAnnotations annotation for it to work
see the release notes
AFAIK, as of
1.0.0-alpha3
, this is not possible. Room wants fields; AutoValue doesn't expose fields. Keep tabs on this feature request for progress in this area.Following this task, apparently they added support. I assume it will be possible in the future Room release (probably androidx.room version 2.0.0). Still not merged as part of 2.0.0-beta1 though
This feature will be available in Room 2.1.0 https://issuetracker.google.com/issues/62408420#comment27