ValueGeneration which receives parameters from a custom
generator annotation.
This is an older API that predates Generator and AnnotationBasedGenerator.
It's often cleaner to implement AnnotationBasedGenerator directly.
org.hibernate.annotations.ValueGenerationType , ValueGeneration
| Modifier and Type | Method and Description |
|---|---|
| private static Class | |
| public void | initialize(A
an instance of the strategy's annotation type. Typically,
implementations will retrieve the annotation's attribute
values and store them in fields. annotation, Class<?> the type of the property annotated with the generator annotation. propertyType)Initializes this generation strategy for the given annotation instance. |
| public default void | initialize(A
an instance of the strategy's annotation type. Typically,
implementations will retrieve the annotation's attribute
values and store them in fields. annotation, Member the Java member annotated with the generator annotation. member, GeneratorCreationContext context)Implements org. |
| getPropertyType | back to summary |
|---|---|
| private static Class | |
| initialize | back to summary |
|---|---|
| public void initialize(A annotation, Class<?> propertyType) Initializes this generation strategy for the given annotation instance.
| |
| initialize | back to summary |
|---|---|
| public default void initialize(A annotation, Member member, GeneratorCreationContext context) Implements org. Doc from org. Initializes this generation strategy for the given annotation instance.
| |