-->
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: Problem with timestamp attribute
PostPosted: Wed Oct 18, 2006 5:03 am 
Newbie

Joined: Tue Oct 17, 2006 10:24 am
Posts: 2
Hello

I use version 3.1 of hibernate with a base data DB2 version 7.x
To resolve a problems of "optimistic lock", I use the attribute timestamp on the mapping hibernate for my business objects:

< timestamp
name="timestamp"
column="DATLIG"
unsaved-value="null"
/>


the problem is that hibernate does not save this column ! when I create a bo and I save it, I find a null value in data base , whereas normally I expects to find the current date value for the timestamp.

Does somebody encountered the same problem as me ? it is a problem of configuration ? of compatibility with DB2 ?

Thank you in advance for your assistance

Regards

Y.G


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.