This content has been marked as final.
Show 3 replies
-
1. Re: Relationships destroyed at ManyToMany merge on owning si
epbernard Jul 10, 2006 7:23 AM (in response to squishy)you don't give enough information. But hibernate does not destroy relationships :-)
-
2. Re: Relationships destroyed at ManyToMany merge on owning si
squishy Jul 10, 2006 8:05 AM (in response to squishy)I have a user with id 1 and name "A" and a group with id 24 and name "B".
They're in a relationship with an entry in the Join-table.
Then i update "A" by doingUser u = new User(); u.setId(1); u.setName("Z"); manager.merge(u);
and after that the entry in the join-table is gone. I can change the group like this without destroying the relationship, though.
fundamental mistake on my side? :) -
3. Re: Relationships destroyed at ManyToMany merge on owning si
squishy Jul 13, 2006 3:45 AM (in response to squishy)Still could use a little help