@Entity
@TypeConverters(TeamModelTypeConverters::class)
data class User(
@PrimaryKey var id: Int? = null,
var team: List<TeamModel>? = null,
var organization_l1: OrganizationModel? = null,
var organization_l2: OrganizationModel? = null,
)
As you can see I have
OrganizationModel
in 2 place. I can not use
@Embedded
As it will give me error regarding same field while creating a table.
Can Anyone help me on this?
Thanks
m
Mark Murphy
01/17/2020, 12:47 PM
This would be better suited for Stack Overflow or other Android sites -- this is not related to Kotlin.
Use the