I have created a new data table called “Music”. Then I created 1 to N relationship from my Users table. A user can have multiple music objects. When I use user.setProperty(“music”, music) it creates the relationship between Users and Music tables. But when same user tries to save another music object, then new music replace the old one and user still have only 1 music object. I know user.setProperty(“music”, music) is not the right command here but I couldn’t find what should I do here. What is the right approach here?
Thanx in advance!