-->
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: how to overwrite version of an object known to the session
PostPosted: Mon Jul 05, 2004 9:05 pm 
Newbie

Joined: Tue Apr 20, 2004 4:20 am
Posts: 8
Location: Sydney/Australia
Hi

I would like to overwrite the curent version of an loaded object. The problem is that Hibernate doesnt use the version field of my object. Hibernate stores the curent version in an EntityEntry object. How can I overwrite the version property in this object?

Ralph

PS: I can explain why I want to do this if it helps but this would take a couple of lines ..


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 11:40 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
version is a technical tool, I would not recommand you to upload it manually.

dettach the object and reattach it. but you'll experience StaleObjectException as expected

_________________
Emmanuel


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.