-->
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: handling intermediate table rows while updating in JPA
PostPosted: Fri Mar 23, 2012 5:24 am 
Newbie

Joined: Fri Mar 23, 2012 5:22 am
Posts: 2
we are having a problem with JPA merge.. we have a customer table and address table with onetomany relationship. so we created a intermediate table ‘customeraddress’. when we go for the customer update test case, we have the customerid and addressid, but the id for customeraddress object is not available.. so its inserting a new row for customeraddress, there by duplicating the customeraddress row. we try to use the merge on the customer object with cascadetype ‘ALL’. how to sovle this problem?


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.