本文整理了Java中org.hibernate.mapping.Column.getCheckConstraint()
方法的一些代码示例,展示了Column.getCheckConstraint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Column.getCheckConstraint()
方法的具体详情如下:
包路径:org.hibernate.mapping.Column
类名称:Column
方法名:getCheckConstraint
暂无
代码示例来源:origin: hibernate/hibernate-orm
private static void applySQLCheck(Column col, String checkConstraint) {
String existingCheck = col.getCheckConstraint();
// need to check whether the new check is already part of the existing check, because applyDDL can be called
// multiple times
if ( StringHelper.isNotEmpty( existingCheck ) && !existingCheck.contains( checkConstraint ) ) {
checkConstraint = col.getCheckConstraint() + " AND " + checkConstraint;
}
col.setCheckConstraint( checkConstraint );
}
代码示例来源:origin: hibernate/hibernate-orm
.append( column.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: hibernate/hibernate-orm
.append( col.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: hibernate/hibernate-orm
if ( col.getCheckConstraint() != null && dialect.supportsColumnCheck() ) {
buf.append( " check (" )
.append( col.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: hibernate/hibernate-orm
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: hibernate/hibernate-orm
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
private static void applySQLCheck(Column col, String checkConstraint) {
String existingCheck = col.getCheckConstraint();
// need to check whether the new check is already part of the existing check, because applyDDL can be called
// multiple times
if ( StringHelper.isNotEmpty( existingCheck ) && !existingCheck.contains( checkConstraint ) ) {
checkConstraint = col.getCheckConstraint() + " AND " + checkConstraint;
}
col.setCheckConstraint( checkConstraint );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
private static void applySQLCheck(Column col, String checkConstraint) {
String existingCheck = col.getCheckConstraint();
// need to check whether the new check is already part of the existing check, because applyDDL can be called
// multiple times
if ( StringHelper.isNotEmpty( existingCheck ) && !existingCheck.contains( checkConstraint ) ) {
checkConstraint = col.getCheckConstraint() + " AND " + checkConstraint;
}
col.setCheckConstraint( checkConstraint );
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
private static void applySQLCheck(Column col, String checkConstraint) {
final String existingCheck = col.getCheckConstraint();
// need to check whether the new check is already part of the existing check, because applyDDL can be called
// multiple times
if ( StringHelper.isNotEmpty( existingCheck ) && !existingCheck.contains( checkConstraint ) ) {
checkConstraint = col.getCheckConstraint() + " AND " + checkConstraint;
}
col.setCheckConstraint( checkConstraint );
}
代码示例来源:origin: org.hibernate/hibernate-annotations
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: hibernate/hibernate
.append( col.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
.append( column.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
.append( column.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: org.hibernate/hibernate-annotations
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: org.jbpm.jbpm3/jbpm-jpdl
alter.append(" check(").append(column.getCheckConstraint()).append(")");
代码示例来源:origin: hibernate/hibernate
.append( col.getCheckConstraint() )
.append( ")" );
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
copy.setUnique( column.isUnique() );
copy.setSqlType( column.getSqlType() );
copy.setCheckConstraint( column.getCheckConstraint() );
copy.setComment( column.getComment() );
copy.setDefaultValue( column.getDefaultValue() );
代码示例来源:origin: org.hibernate.orm/hibernate-core
);
column.setSize( size );
column.setCheckConstraint( getCheckConstraint() );
return column;
内容来源于网络,如有侵权,请联系作者删除!