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
|