-->
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: Timestamp is not updated when using HQL to update table
PostPosted: Sun Dec 12, 2010 2:51 pm 
Newbie

Joined: Thu Jul 24, 2008 1:06 pm
Posts: 2
I have a table with a timestamp provided by Hibernate for versioning.The timestamp should change whenever the row is updated.When I am accessing and updating these tables as Pojo's Hibernate updates the timestamp. However, whenever I am updating the row using an HQL, the timestamp is not changed. Why is it so ? I am using hibernate 3.2.6 ga. Is it a bug or is it expected behaviour ?


Top
 Profile  
 
 Post subject: Re: Timestamp is not updated when using HQL to update table
PostPosted: Sun Dec 12, 2010 5:52 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
It is expected as documented in http://docs.jboss.org/hibernate/stable/ ... tch-direct
This also mentions that you can use 'update versioned' to also update the timestamp. Note that this documentation is for 3.5.6 so I am not sure if this is different from 3.2.6.


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.