OptimisticLock (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.annotations
Annotation Type OptimisticLock

    @Target(value={METHOD,FIELD})
    @Retention(value=RUNTIME)
    public @interface OptimisticLock

Whether or not a change of the annotated property will trigger a entity version increment. If the annotation is not present, the property is involved in the optimistic lock strategy (default).

Required Element Summary
`boolean` | `excluded`

Element Detail

### excluded

    public abstract boolean excluded

  Returns:
    If `true`, the annotated property change will not trigger a version increment.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

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