Android Room Persistence library entity with AutoValue

前端 未结 4 1126
北海茫月
北海茫月 2021-02-13 19:45

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?

4条回答
  •  旧时难觅i
    2021-02-13 20:07

    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

提交回复
热议问题