Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Order and Line Item Many to one relationship
data class OrderWithLineItems(
@Embedded var order: Order,
@Relation(
parentColumn = "orderId",
entityColumn = "orderId",
entity = LineItem::class
)
val lineItemList: MutableList<LineItemAndProduct>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment