Profile cover photo
Profile photo
Ludovic ROLAND
30 followers
30 followers
About
Posts

Post has attachment

Post has attachment
What is the best way to implement a many to many relation with Room Persistence Library?

I am trying to implement a many to many relation (a person can hold several dogs and a dogs can be holded by several persons) but in order to save data, I have to do so many request (in comparison with Realm).

Can someone can tell me if the following code is correct in order to implement and save a many to many relation ?

Here the code : https://stackoverflow.com/questions/45368108/android-room-persistence-library-what-is-the-best-way-to-implement-a-many-to-m

Thank you in advance !

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded