-->
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: Wierd pb with session merge
PostPosted: Fri Nov 11, 2005 8:17 pm 
Newbie

Joined: Wed Oct 12, 2005 7:06 pm
Posts: 10
Hi

I have a wierd pb with session merge

In the code i have

hibSession.merge(moduleData);

When the object is persited, the value is inserted and updated in the database with out any issues.

But moduleData has a attribute called commetVO . if this is a inserted in the database, the id in the commetVO is not set (updated) but the database insert happens with out any issue.

Also moduleData has an attribute called version for versioning. After the merge (which results in a database update), the version in the object is not updated (but the database has the updated version)

Am i missing something?

Thanks in advance
Lakshmanan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 3:25 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
hint: merge, unlike update, returns an Object

objectThatYouMayBeLookingFor = hibSession.merge(moduleData);


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.