Posted on 2008-10-30 21:33
leekiang 阅读(350)
评论(0) 编辑 收藏
1,乐观锁
<class name="onlyfun.caterpillar.User"
table="user"
optimistic-lock="version">
<id name="id" column="id">
<generator class="native"/>
</id>
<version name="version" column="version" access="field"/>
http://caterpillar.onlyfun.net/Gossip/HibernateGossip/OptimisticLocking.html