org.hibernate.annotations
Annotation Type OptimisticLocking


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface OptimisticLocking

Used to define the style of optimistic locking to be applied to an entity. In a hierarchy, only valid on the root entity.


Optional Element Summary
 OptimisticLockType type
           
 

type

public abstract OptimisticLockType type
Default:
org.hibernate.annotations.OptimisticLockType.VERSION


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.