Package io.micronaut.data.annotation
Annotation Interface GeneratedValue
@Retention(RUNTIME)
@Target({METHOD,FIELD,ANNOTATION_TYPE})
@Documented
public @interface GeneratedValue
Designates a property as a generated value. Typically not used
directly but instead mapped to via annotation such as
javax.persistence.GeneratedValue
.- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionIn the case of sequence generators if you wish to define statement that creates the sequence, you can do so here.In the case of sequence generators if you wish to alter the name of the sequence generator do so with this member.The generation type.
-
Element Details
-
value
GeneratedValue.Type valueThe generation type.- Returns:
- The generation type.
- Default:
- AUTO
-
definition
String definitionIn the case of sequence generators if you wish to define statement that creates the sequence, you can do so here.- Returns:
- The sequence definition
- Default:
- ""
-
ref
String refIn the case of sequence generators if you wish to alter the name of the sequence generator do so with this member.- Returns:
- The name to use to reference the sequence generator
- Default:
- ""
-