Package org.hibernate.metamodel.source.annotations

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


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

  public AttributeColumnRelationalState(MappedAttribute attribute, MetadataImpl meta) {
    ColumnValues columnValues = attribute.getColumnValues();
    namingStrategy = meta.getNamingStrategy();
    columnName = columnValues.getName().isEmpty() ? attribute.getName() : columnValues.getName();
    unique = columnValues.isUnique();
    nullable = columnValues.isNullable();
    size = createSize( columnValues.getLength(), columnValues.getScale(), columnValues.getPrecision() );

    List<AnnotationInstance> checkAnnotations = attribute.annotations( HibernateDotNames.CHECK );
    if ( checkAnnotations.size() > 1 ) {
      throw new AssertionFailure( "There cannot be more than one @Check annotation per mapped attribute" );
    }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.annotations.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.