Package org.hibernate.tuple
Interface AnnotationValueGeneration<A extends Annotation>
- Type Parameters:
A- The generator annotation type supported by an implementation
- All Superinterfaces:
AnnotationBasedGenerator<A>,BeforeExecutionGenerator,Generator,OnExecutionGenerator,Serializable,ValueGeneration
@Deprecated(since="6.2",
forRemoval=true)
public interface AnnotationValueGeneration<A extends Annotation>
extends ValueGeneration, AnnotationBasedGenerator<A>
Deprecated, for removal: This API element is subject to removal in a future version.
An implementation of
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(A annotation, Class<?> propertyType) Deprecated, for removal: This API element is subject to removal in a future version.Initializes this generation strategy for the given annotation instance.default voidinitialize(A annotation, Member member, GeneratorCreationContext context) Deprecated, for removal: This API element is subject to removal in a future version.Initializes this generation strategy for the given annotation instance.Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface org.hibernate.generator.OnExecutionGenerator
getGeneratedIdentifierDelegate, getUniqueKeyPropertyNamesMethods inherited from interface org.hibernate.tuple.ValueGeneration
generate, generatedOnExecution, getDatabaseGeneratedReferencedColumnValue, getDatabaseGeneratedReferencedColumnValue, getEventTypes, getGenerationTiming, getReferencedColumnValues, getValueGenerator, referenceColumnInSql, referenceColumnsInSql, writePropertyValue
-
Method Details
-
initialize
Deprecated, for removal: This API element is subject to removal in a future version.Initializes this generation strategy for the given annotation instance.- Parameters:
annotation- an instance of the strategy's annotation type. Typically, implementations will retrieve the annotation's attribute values and store them in fields.propertyType- the type of the property annotated with the generator annotation.- Throws:
HibernateException- in case an error occurred during initialization, e.g. if an implementation can't create a value for the given property type.
-
initialize
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AnnotationBasedGeneratorInitializes this generation strategy for the given annotation instance.- Specified by:
initializein interfaceAnnotationBasedGenerator<A extends Annotation>- Parameters:
annotation- an instance of the strategy's annotation type. Typically, implementations will retrieve the annotation's attribute values and store them in fields.member- the Java member annotated with the generator annotation.context- aGeneratorCreationContext
-
AnnotationBasedGenerator