• The
@ColumnInfo
annotation lets you change the names for your columns, so you
can use
different naming conventions
in Kotlin and in SQL.
• The
@Ignore
annotation tells Room to ignore a certain property from your class so
it does not get converted into a column in the database.
• The
@Embedded
annotation can be used on an entity's
field to tell Room that the
properties on the annotated object should be represented as columns on the same
entity. This way you can
Do'stlaringiz bilan baham: