Room DB three table relationship
I am trying to implement relationship in Room Database using @Relation from three tables but confused with it.
DB consists of students, subjects and marks table.
student table:
@Entity(tableName = "student")
data class Student(
@PrimaryKey(autoGenerate = false)
@ColumnInfo(name = "student_id")
var id: Int = 0,
@ColumnInfo(name = "student_name")
var name: String? = null,
@ColumnInfo(name = "student_email")
var email: String? = null,
@ColumnInfo(name =...