Package org.hibernate.annotations

Examples of org.hibernate.annotations.ValueGenerationType


   * applied to the given property is returned, {@code null} otherwise.
   */
  private <A extends Annotation> AnnotationValueGeneration<A> getValueGenerationFromAnnotation(
      XProperty property,
      A annotation) {
    ValueGenerationType generatorAnnotation = annotation.annotationType()
        .getAnnotation( ValueGenerationType.class );

    if ( generatorAnnotation == null ) {
      return null;
    }

    Class<? extends AnnotationValueGeneration<?>> generationType = generatorAnnotation.generatedBy();
    AnnotationValueGeneration<A> valueGeneration = instantiateAndInitializeValueGeneration(
        annotation, generationType, property
    );

    if ( annotation.annotationType() == Generated.class &&
View Full Code Here


   * applied to the given property is returned, {@code null} otherwise.
   */
  private <A extends Annotation> AnnotationValueGeneration<A> getValueGenerationFromAnnotation(
      XProperty property,
      A annotation) {
    ValueGenerationType generatorAnnotation = annotation.annotationType()
        .getAnnotation( ValueGenerationType.class );

    if ( generatorAnnotation == null ) {
      return null;
    }

    Class<? extends AnnotationValueGeneration<?>> generationType = generatorAnnotation.generatedBy();
    AnnotationValueGeneration<A> valueGeneration = instantiateAndInitializeValueGeneration(
        annotation, generationType, property
    );

    if ( annotation.annotationType() == Generated.class &&
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.ValueGenerationType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.