KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > OptimisticLockType


1 //$Id: OptimisticLockType.java,v 1.1 2005/02/13 16:50:54 epbernard Exp $
2
package org.hibernate.annotations;
3
4 /**
5  * Optimistic locking strategy
6  * VERSION is the default and recommanded one
7  *
8  * @author Emmanuel Bernard
9  */

10 public enum OptimisticLockType {
11     /** no optimistic locking */
12     NONE,
13     /** use a column version */
14     VERSION,
15     /** dirty columns are compared */
16     DIRTY,
17     /** all columns are compared */
18     ALL
19 }
20
Popular Tags