Annotation Interface Field
Annotation to define custom metadata for document fields.
- Author:
- Oliver Gierke, Christoph Strobl
-
Optional Element Summary
-
Element Details
-
value
The key to be used to store the field inside the document. Alias forname()
.- Returns:
- an empty
String
by default.
- Default:
- ""
-
name
The key to be used to store the field inside the document. Alias forvalue()
.- Returns:
- an empty
String
by default.
- Default:
- ""
-
order
int orderThe order in which various fields shall be stored. Has to be a positive integer.- Returns:
- the order the field shall have in the document or -1 if undefined.
- Default:
- 2147483647
-