-->
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: One-to-many association update
PostPosted: Mon Sep 08, 2008 10:32 am 
Newbie

Joined: Tue Oct 02, 2007 1:47 am
Posts: 6
Hi

I am looking at how will hibernate help me update the one to many association along with its parent.
If i update an collection element for only one row out of the two rows, the one not updated, needs to get deleted. Hibernate updates the row correctly but doesnt delete the non-updated row.

How do i go about acheiving this?


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2008 8:24 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Wouldn't it be as simple as performing an explicity delete on the field you want to get rid of?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.