Annotation Interface Element
@Documented
@Inherited
@Retention(RUNTIME)
@Target({FIELD,METHOD,PARAMETER})
public @interface Element
Annotation to define an ordinal element index within a tuple. Ordinals map to fields or property accessors within a
domain class. Element indexes within a tuple must be unique and consecutive beginning with the first index at
0.
- Since:
- 2.1
- Author:
- Mark Paluch
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
int value- Returns:
- ordinal index within a tuple. First index is 0, must be greater or equal to zero.
-