greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

fix the generation issue when primary key is a custom type #1053

Open passos opened 4 years ago

passos commented 4 years ago

Fix the generation issues when primary key is a custom type

When primary key is a custom type, the generated code for updateKeyAfterInsert and getKey will use String as return type instead of the actual custom type, which will cause compile error.

see https://github.com/greenrobot/greenDAO/issues/1051 for details