Android Room Persistence library entity with AutoValue

前端 未结 4 1116
北海茫月
北海茫月 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条回答
  •  清歌不尽
    2021-02-13 20:14

    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.

提交回复
热议问题