具有AutoValue的Android Room Persistence库实体 [英] Android Room Persistence library entity with AutoValue

查看:118
本文介绍了具有AutoValue的Android Room Persistence库实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以同时使用房间持久性库@Entity AutoValue @AutoValue和同一POJO上的构建器?我该怎么办?

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?

推荐答案

AFAIK,从1.0.0-alpha3开始,这是不可能的.房间要田; AutoValue不会公开字段.在此功能请求上保留标签,以了解该领域的进展.

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.

这篇关于具有AutoValue的Android Room Persistence库实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆