abdl
10/19/2024, 4:25 AMclass ProductTransDraft : RealmObject {
@PrimaryKey
var draftId: String = ""
var datetime: String = ""
var kasir: String = ""
var subtotal: String = ""
var detail: RealmList<ProductTrans> = RealmList()
}
The error is related to the detail property, which is supposed to store a list of ProductTrans objects. Does anyone know how to properly define and handle lists in Realm?
Also, I'm considering migrating to Room before the project gets too large. Do you think it's worth the switch? I feel like Realm has less documentation and support compared to Room.
Any advice would be greatly appreciated!
Thanks!Fergus Hewson
10/19/2024, 4:29 AMabdl
10/19/2024, 4:33 AMFergus Hewson
10/19/2024, 4:34 AMabdl
10/19/2024, 4:36 AMFergus Hewson
10/19/2024, 4:39 AMabdl
10/19/2024, 4:39 AM