-->
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: Hibernate Save : showing inconsistent values after saving
PostPosted: Wed Aug 12, 2009 7:55 am 
Newbie

Joined: Wed Aug 12, 2009 7:06 am
Posts: 1
I have a set of objects present in an object(X). I copied these set of objects into new object(Y) and trying to save the new object(Y). After saving when i see the size of the set in the new object(Y), i am finding the size less than the one which i inserted into new object. Before save its displaying the correct size, but after save it shows less.
Is this problem with Hibernate save?


Top
 Profile  
 
 Post subject: Re: Hibernate Save : showing inconsistent values after saving
PostPosted: Wed Aug 12, 2009 9:04 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Well, this isn't a problem with Hibernate. Basic saves are implemented properly.

Show us some code. Just a snippet, and maybe we can have some suggestions.

Do you commit your transaction as soon as you have copied the list. Maybe some funny business happens before the commit happens?

_________________
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.