-->
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: version starting with 1 instead of 0
PostPosted: Fri Aug 04, 2006 3:23 am 
Newbie

Joined: Mon Sep 19, 2005 4:30 am
Posts: 11
After the creation and first save of an entity, the version number is 0 (zero).

Due to some weired requirements in the context of a legacy system this is a problem for us and
we need to ensure, that the version column (used for optimistic locking)
does never contain 0 (zero).

So my question ist:
Is there a way to set the starting value for the versioning in hibernate?
Something like options.version_start=1 would help.

It would also help me, if someone could tell me, that this is definitely not possible.


Thanks

lnz


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.