-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Duplicate inserts in a many-to-many table
PostPosted: Thu Apr 29, 2004 10:28 am 
Newbie

Joined: Thu Apr 29, 2004 10:22 am
Posts: 5
Location: Ribeir
Hi,

I have a problem in a many-to-many association that i insert only one child in the List and when i update my parent object hibernate insert 16 times the same relationship register in the table.

regards,
Flavio


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 2:09 pm 
Newbie

Joined: Thu Apr 29, 2004 10:22 am
Posts: 5
Location: Ribeir
I've found the problem.

It's that i'm using my own List class, tha i called ValidVector.

I changed it to Bag and its work.

Now i need to extend my own class of Bag class.

How can i copy a Bag to my own ValidBag into my setter methods.

regards,
Flavio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.