I am using Room databse in Android and I have three tables: Customer, Category, CustomerCategory(relation table). Can I somehow use DTO with @Relation anotation to get Category with all Customers in List?
Asked
Active
Viewed 61 times
0
-
maybe this will help you https://stackoverflow.com/questions/44361824/how-can-i-represent-a-many-to-many-relation-with-android-room – Valgaal Mar 11 '19 at 15:09
-
I found this too. But I cannot full example of DTO and Query with using @Relation. – Jan Maděra Mar 11 '19 at 21:29
-
You can refer https://stackoverflow.com/a/58424784 – Nischal Oct 21 '19 at 04:49