Package org.hibernate.annotations

Examples of org.hibernate.annotations.DiscriminatorOptions


    final String discriminatorValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class )
        ? clazzToProcess.getAnnotation( DiscriminatorValue.class ).value()
        : null;
    entityBinder.setDiscriminatorValue( discriminatorValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here


    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    if ( clazzToProcess.isAnnotationPresent( ForceDiscriminator.class ) ) {
      log.warn( "@ForceDiscriminator is deprecated use @DiscriminatorOptions instead." );
      entityBinder.setForceDiscriminator( true );
    }

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    if ( clazzToProcess.isAnnotationPresent( ForceDiscriminator.class ) ) {
      log.warn( "@ForceDiscriminator is deprecated use @DiscriminatorOptions instead." );
      entityBinder.setForceDiscriminator( true );
    }

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    if ( clazzToProcess.isAnnotationPresent( ForceDiscriminator.class ) ) {
            LOG.deprecatedForceDescriminatorAnnotation();
      entityBinder.setForceDiscriminator( true );
    }

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

    String discrimValue = clazzToProcess.isAnnotationPresent( DiscriminatorValue.class ) ?
        clazzToProcess.getAnnotation( DiscriminatorValue.class ).value() :
        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.DiscriminatorOptions

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.