Java android上的ormlite无法读取布尔值
使用OrmLite 4.48。在安卓4.x上。它无法从实体中读取布尔字段Java android上的ormlite无法读取布尔值,java,android,sqlite,ormlite,Java,Android,Sqlite,Ormlite,使用OrmLite 4.48。在安卓4.x上。它无法从实体中读取布尔字段 public class Thing ... { ... ... @DatabaseField private boolean isActive; } 读回时: List<Thing> things = DaoFactory.getInstance(getActivity()).getThingDao().queryForAll(); for(Thing thing : things) {
public class Thing ... {
...
...
@DatabaseField
private boolean isActive;
}
读回时:
List<Thing> things = DaoFactory.getInstance(getActivity()).getThingDao().queryForAll();
for(Thing thing : things) {
Log.d(thing.getName(), "Is active: "+thing.isActive())
}
这完全是以同样的方式失败的
还有其他人知道吗?
谢谢
@DatabaseField(dataType = DataType.BOOLEAN)