This content has been marked as final.
Show 1 reply
-
1. Re: Optimistic Locking & Versioning
tefron Jun 13, 2006 2:40 PM (in response to sdawson)it should work fine.
What you need in your hbm files is:
.....
<class name="com.canpay.gm.persistent.model.BankAccount" table="BankAccount" optimistic-lock="version">
....
xxx
<id name="id" column="id" type="long" unsaved-value="null">
<natural-id>
</natural-id>
....other properties
TEFRON