@Entity
data class User(
@PrimaryKey
val id: Int,
val petsId: List<String>
)
@Entity
data class Pet(
@PrimaryKey
val id: Int,
val name: String
)
How to get UserWithPets from the two User and Pet entities using Room?
data class UserWithPets(
val id: Int,
val pets: List<Pet>
)