DBFLow不能支持以`m`开头的成员名称
我正在使用DBFlow ,一个Android的orm。从它的文档,我使用@Column
来注释一个成员。
@Column private long mMobileBytes;
私有领域必须带有公共的
java-bean-style
getter和setter。
所以我添加getter
和setter
:
public long getMobileBytes() { return mMobileBytes; } public void setMobileBytes(long mobileBytes) { mMobileBytes = mobileBytes; }
但是, assembleDebug
带有错误:
类com.raizlabs.android.dbflow.processor.ColumnValidator(Kotlin反射不可用):无法从表类:AppInfo中找到私有元素的设置器:“mMobileBytes”。 考虑添加名为setMMobileBytes的setter或使其更易于访问。
我知道我可以修改成员名称不是与m
。是否有任何解决方案?