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.  [ 1 post ] 
Author Message
 Post subject: updating a table while inserting to a join table
PostPosted: Fri Aug 25, 2006 11:54 am 
Newbie

Joined: Fri Aug 25, 2006 11:29 am
Posts: 2
Hi,

I have a situation in which I need to update a table. But, along with the same update operation, I may also have to insert new records into a join table (Based on a set from the mapping file). It works fine, however I see a strange issue. Hibernate updates the main table without any problem, but when it comes to insert new records into the join table, it deletes all the existing records of the key and inserts them one by one. I would naturally expect Hibernate to just update with any new data from the collection and leaving whatever was there originally. I looked at the manuals for a solution, but could not find any. Can someone please help me on this?

Thank you,
Soby Chacko


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

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.