RE: [OJB-developers] Bug in M-N relationships
Brought to you by:
thma
From: Matthew B. <ma...@so...> - 2002-05-13 03:48:12
|
Found that you have to set one side of the many to many collection auto.update to false in the repository. Not very intuitive :) Maybe we should have a way of detecting bidirectional relationships and avoid this situation? I don't quite know enough about the innards to know what the ramifications are, but I will start to look at it. -----Original Message----- From: Matthew Baird To: 'obj...@li... ' Sent: 5/12/02 7:27 PM Subject: [OJB-developers] Bug in M-N relationships Given the following database tables USER USER_ROLE ROLE and the objects User Role if I create a relationship in the objects by adding a user to a role, then make it persistent, everything is ok. if, after I create one relationship, create a new user and add him to the role and persist it, the relationship record in USER_ROLE that existed for the first relationship gets multiplied by 3. Then if I do it again, it gets multiplied by 3 again. This could quickly get out of control. Can anyone confirm this behaviour? _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: ban...@so... _______________________________________________ Objectbridge-developers mailing list Obj...@li... https://lists.sourceforge.net/lists/listinfo/objectbridge-developers |