Groupie: Groupie and Android Room INCOMPATIBILITY

Created on 27 Dec 2018  路  3Comments  路  Source: lisawray/groupie

The kotlin compiler fails to compile when I extend the Item() class
Screen-Shot-20181227145836

This is how my Data class looks like
Screen-Shot-20181227145925
I tried to ignore the fields, but it didn't work

Most helpful comment

Don't extend Item() with your DB schema classes.

They are two separate things.

All 3 comments

Groupie items are not serializable and cannot be saved to a database. You should instead create a data class that only holds your data and save that to a db. Groupie items have references to objects that cannot be saved in a db.

Don't extend Item() with your DB schema classes.

They are two separate things.

Closing as @digitalbuddha and @Zhuinden gave clear answers

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jordond picture jordond  路  6Comments

punitda picture punitda  路  3Comments

ValCanBuild picture ValCanBuild  路  6Comments

lisawray picture lisawray  路  7Comments

kolmakovruslan picture kolmakovruslan  路  3Comments