Top Description Methods
org.hibernate.annotations

public @Interface OptimisticLock

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Specifies whether mutating the annotated attribute should trigger an increment to the version of the entity instance. Or, if OptimisticLockType#ALL or OptimisticLockType#DIRTY are used, specifies whether the attribute should be included or excluded from the list of checked attributes.

If this annotation is not present, mutating an attribute does cause the version to be incremented.

Author
Logi Ragnarsson

Method Summary

Modifier and TypeMethod and Description
public boolean
excluded()

true if changing the annotated attribute should not cause the version to be incremented.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

excludedback to summary
public boolean excluded()

true if changing the annotated attribute should not cause the version to be incremented.