接口 AnnotationValueGeneration<A extends Annotation>
-
- 类型参数:
A- The generator annotation type supported by an implementation
- 所有超级接口:
Serializable,ValueGeneration
- 所有已知实现类:
CreationTimestampGeneration,GeneratedValueGeneration,UpdateTimestampGeneration,VmValueGeneration
public interface AnnotationValueGeneration<A extends Annotation> extends ValueGeneration
AValueGenerationbased on a custom Java generator annotation type.- 作者:
- Gunnar Morling
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidinitialize(A annotation, Class<?> propertyType)Initializes this generation strategy for the given annotation instance.-
从接口继承的方法 org.hibernate.tuple.ValueGeneration
getDatabaseGeneratedReferencedColumnValue, getGenerationTiming, getValueGenerator, referenceColumnInSql
-
-
-
-
方法详细资料
-
initialize
void initialize(A annotation, Class<?> propertyType)
Initializes this generation strategy for the given annotation instance.- 参数:
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. Implementations may use the type to determine the rightValueGeneratorto be applied.- 抛出:
HibernateException- in case an error occurred during initialization, e.g. if an implementation can't create a value for the given property type.
-
-