All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.annotations.OptimisticLock Maven / Gradle / Ivy

There is a newer version: 3.5.6-Final
Show newest version
//$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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy