<Room Database FOREIGN KEY constraint failed (code...
# stackoverflow
r
Room Database FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY) I've coded my first database with the room library but get the following error all the time when I try to insert something into the database. This should be a n:m relation so I created a new table and marked the foreignkeys. These are my Entity classes: @Entity(tableName = "exercises", primaryKeys = ["id"], foreignKeys =[ ForeignKey( entity = WorkoutPlanExerciseCrossRef::class, parentColumns = ["ExerciseID"], childColumns = ["id"],...