Interface AnnotationValueGeneration<A extends Annotation>

    • Method Detail

      • initialize

        void initialize​(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.
        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

        default void initialize​(A annotation,
                                Member member,
                                GeneratorCreationContext context)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: AnnotationBasedGenerator
        Initializes this generation strategy for the given annotation instance.
        Specified by:
        initialize in interface AnnotationBasedGenerator<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 - a GeneratorCreationContext