What does @Entity do
1 min readSep 20, 2020
The @Entity annotation is used by the Room persistence library to denote that a data class is an Entity which is Room language for Table(a database table not a regular one, use the context clues). By using this annotation you are telling room that this data class type could be used in a database.
In simpler terms if you want to store a data class in your database you need annotate your data class with @Entity.