Package org.hibernate.metamodel.relational

Examples of org.hibernate.metamodel.relational.TableSpecification.createColumn()


        explicitName == null ?
            state.getNamingStrategy().propertyToColumnName( getAttribute().getName() ) :
            state.getNamingStrategy().columnName( explicitName );
// todo : find out the purpose of these logical bindings
//      mappings.addColumnBinding( logicalColumnName, column, table );
    Column columnValue = table.createColumn( columnName );
    columnValue.getSize().initialize( state.getSize() );
    columnValue.setNullable( ! forceNonNullable() &&  state.isNullable() );
    columnValue.setUnique( ! forceUnique() && state.isUnique()  );
    columnValue.setCheckCondition( state.getCheckCondition() );
    columnValue.setDefaultValue( state.getDefault() );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.