Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: $ |
2 | package org.hibernate.annotations; |
||
3 | |||
4 | import java.lang.annotation.ElementType; |
||
5 | import java.lang.annotation.Retention; |
||
6 | import java.lang.annotation.RetentionPolicy; |
||
7 | import java.lang.annotation.Target; |
||
8 | |||
9 | /** |
||
10 | * Whether or not update entity's version on property's change |
||
11 | * If the annotation is not present, the property is involved in the optimistic lock srategy (default) |
||
12 | * |
||
13 | * @author Logi Ragnarsson |
||
14 | */ |
||
15 | @Target( {ElementType.METHOD, ElementType.FIELD} ) |
||
16 | @Retention( RetentionPolicy.RUNTIME ) |
||
17 | public @interface OptimisticLock { |
||
18 | |||
19 | /** |
||
20 | * If true, the annotated property change will not trigger a version upgrade |
||
21 | */ |
||
22 | boolean excluded(); |
||
23 | |||
24 | } |