1 min readMar 8, 2020
This is an awesome accompaniment to the Define relationships between objects docs Florina!
How come for the @Relational
data class
, only the first val
requires the @Embedded
annotation?
i.e.
Only the Owner
val
uses the @Embedded
annotation?
data class DogAndOwner(
@Embedded val owner: Owner,
@Relation(
parentColumn = "ownerId",
entityColumn = "dogOwnerId"
)
val dog: Dog
)