greenDAO icon indicating copy to clipboard operation
greenDAO copied to clipboard

SQLiteException: no such column: T.SONG_ID (code 1): , while compiling: SELECT T."SONG_ID",T."ALBUM_ID",T."TITLE",T."ARTIST",T."DURATION",T."DATA",T."IS_FAVORITE",T."ALBUM" FROM "tb_music" T

Open LdwHly opened this issue 6 years ago • 1 comments
trafficstars

旧版本的app里,我用了ormlike,现在想换成greeDao,出现了这个错误

LdwHly avatar Jun 18 '19 09:06 LdwHly

Well, make sure your table has a SONG_ID column. Or you can specify the name a class field should have using @Property(nameInDb = "SONG_ID"). http://greenrobot.org/greendao/documentation/modelling-entities/#Basic_properties

-- Check out ObjectBox, our new fast, easy to use database!

greenrobot-team avatar Jun 18 '19 13:06 greenrobot-team