org.hibernate.annotations.OptimisticLock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-annotations
Show all versions of hibernate-annotations
Annotations metadata for Hibernate
//$Id: OptimisticLock.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
package org.hibernate.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Whether or not update entity's version on property's change
* If the annotation is not present, the property is involved in the optimistic lock srategy (default)
*
* @author Logi Ragnarsson
*/
@Target( {ElementType.METHOD, ElementType.FIELD} )
@Retention( RetentionPolicy.RUNTIME )
public @interface OptimisticLock {
/**
* If true, the annotated property change will not trigger a version upgrade
*/
boolean excluded();
}