参考: https://www.cnblogs.com/whoislcj/p/5651396.html
https://www.jianshu.com/p/53083f782ea2
1.设置GreenDao自动生成的文件位置:
在gradle文件设置
greendao {
targetGenDir 'src/main/java'
daoPackage 'com.example.database'
}
注意:目录用 /
包名用 .
2.Greendao 不写入数据表 的字段加 :@Transient