-->
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: Sync XML with Database using nHibernate
PostPosted: Fri Mar 20, 2009 3:12 pm 
Newbie

Joined: Tue Jul 15, 2008 3:55 pm
Posts: 5
Hi,
Currently am working on offline project where i need to get the data from XML and create a Business Object which will have all the child tables with 1-1,1-Many,May-Many relations.
My questions is when i try to save the session, it is inserting new records if it does not exist,Updates if it exist but it is ignoring deletions.

Please tell me how to take care of deleting those objects which are not a part of collections automatically.

Simply.. i want to delete those objects which are not a part of parent Business Object.

Thanks in advance...


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.