greenDAO主键不能是基本数据类型,比如不能是 long,要写为 Long 类型 @Transient注解说明:表示该字段不存入数据库 转载于:https://www.cnblogs.com/yongfengnice/p/11466402.html