Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | package org.hibernate.annotations; |
2 | |||
3 | import static java.lang.annotation.ElementType.FIELD; |
||
4 | import static java.lang.annotation.ElementType.METHOD; |
||
5 | import java.lang.annotation.Retention; |
||
6 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
7 | import java.lang.annotation.Target; |
||
8 | |||
9 | |||
10 | /** |
||
11 | * This specifies that a property is part of the natural id of the entity. |
||
12 | * |
||
13 | * @author Nicol‡s Lichtmaier |
||
14 | */ |
||
15 | @Target( { METHOD, FIELD } ) |
||
16 | @Retention( RUNTIME ) |
||
17 | public @interface NaturalId { |
||
18 | /** |
||
19 | * If this natural id component is mutable or not. |
||
20 | */ |
||
21 | boolean mutable() default false; |
||
22 | } |