下面列出了怎么用org.hibernate.annotations.GeneratorType的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public void initialize(GeneratorType annotation, Class<?> propertyType) {
Class<? extends ValueGenerator<?>> generatorType = annotation.type();
constructor = ReflectHelper.getDefaultConstructor( generatorType );
this.generationTiming = annotation.when().getEquivalent();
}