I use this data class to have the relationship:
data class LineWithBusStops(
@Embedded val line: LineEntity,
@Relation(
parentColumn = "id",
entityColumn = "busStopId",
associateBy = Junction(BusStopLineEntity::class)
)
val busStops: List<BusStopEntity>
)
But I get an error on the
@Relation
line
entityColumn = "busStopId"
> Cannot find the child entity column
busStopId
in com.local.model.BusStopEntity. Options: id, name, lat, lon
If I change
busStopId
to
id
, I got even more errors.
Any ideas?