Problem accesing and prepopulating sqlite in Android with Room. MVVM architecture
The following code is an MVVM artchitecture based ROOM implementation in Kotlin for Android.
I have a problem with the prepopulation of database. My database don't have any data or I can't find the solution to get or insert data.
The IDE doesn't throw any compilation problems.
This is my data class:
@Entity(tableName = Constants.DATABASE_NAME)
data class Card(
@PrimaryKey(autoGenerate = true) @ColumnInfo(name = Constants.COLUMN_NAME_ID) val id: Int?,