Package org.hibernate.metamodel.source.annotations.attribute

Examples of org.hibernate.metamodel.source.annotations.attribute.ColumnValues


    Class<?> type = String.class; // string is the discriminator default
    if ( discriminatorFormulaAnnotation != null ) {
      String expression = JandexHelper.getValue( discriminatorFormulaAnnotation, "value", String.class );
      discriminatorFormula = new FormulaValue( getPrimaryTableSource().getExplicitTableName(), expression );
    }
    discriminatorColumnValues = new ColumnValues( null ); //(stliu) give null here, will populate values below
    discriminatorColumnValues.setNullable( false ); // discriminator column cannot be null
    if ( discriminatorColumnAnnotation != null ) {

      DiscriminatorType discriminatorType = Enum.valueOf(
          DiscriminatorType.class, discriminatorColumnAnnotation.value( "discriminatorType" ).asEnum()
View Full Code Here


    Class<?> type = String.class; // string is the discriminator default
    if ( discriminatorFormulaAnnotation != null ) {
      String expression = JandexHelper.getValue( discriminatorFormulaAnnotation, "value", String.class );
      discriminatorFormula = new FormulaValue( getPrimaryTableSource().getExplicitTableName(), expression );
    }
    discriminatorColumnValues = new ColumnValues( null ); //(stliu) give null here, will populate values below
    discriminatorColumnValues.setNullable( false ); // discriminator column cannot be null
    if ( discriminatorColumnAnnotation != null ) {

      DiscriminatorType discriminatorType = Enum.valueOf(
          DiscriminatorType.class, discriminatorColumnAnnotation.value( "discriminatorType" ).asEnum()
View Full Code Here

    Class<?> type = String.class; // string is the discriminator default
        if ( discriminatorFormulaAnnotation != null ) {
            String expression = JandexHelper.getValue( discriminatorFormulaAnnotation, "value", String.class );
            discriminatorFormula = new FormulaValue( getPrimaryTableSource().getExplicitTableName(), expression );
        }
         discriminatorColumnValues = new ColumnValues( null ); //(stliu) give null here, will populate values below
            discriminatorColumnValues.setNullable( false ); // discriminator column cannot be null
    if ( discriminatorColumnAnnotation != null ) {

      DiscriminatorType discriminatorType = Enum.valueOf(
          DiscriminatorType.class, discriminatorColumnAnnotation.value( "discriminatorType" ).asEnum()
View Full Code Here

  private String comment;
  private Set<String> uniqueKeys = new HashSet<String>();


  public ColumnRelationalStateImpl(SimpleAttribute attribute, MetadataImplementor meta) {
    ColumnValues columnValues = attribute.getColumnValues();
    namingStrategy = meta.getOptions().getNamingStrategy();
        globallyQuotedIdentifiers = meta.isGloballyQuotedIdentifiers();
    columnName = columnValues.getName().isEmpty() ? attribute.getName() : columnValues.getName();
    unique = columnValues.isUnique();
    nullable = columnValues.isNullable();
    size = createSize( columnValues.getLength(), columnValues.getScale(), columnValues.getPrecision() );
    checkCondition = parseCheckAnnotation( attribute );
    indexes = parseIndexAnnotation( attribute );

    String[] readWrite;
    List<AnnotationInstance> columnTransformerAnnotations = getAllColumnTransformerAnnotations( attribute );
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.annotations.attribute.ColumnValues

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.