![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
greendao使用
文章平均质量分 68
舞蓝蔚落
这个作者很懒,什么都没留下…
展开
-
greendao3.2简单配置
参考greendao的官方文档这里写链接内容 1.在项目project的root目录下build.gradle文件中配置如下: buildscript { repositories { jcenter() mavenCentral() // 添加仓库 } dependencies { classpath ‘com原创 2017-05-12 15:43:55 · 239 阅读 · 0 评论 -
greendao3.2的简单使用
1.构建自己的实例 @Entity(indexes = { @Index(value = “name”, unique = true) }) public class User { @Id private Long id;//如果需要id自增长,给的id需要是Long类型,如果不需要可以是long @NotNull private St原创 2017-05-13 00:20:21 · 504 阅读 · 0 评论