org.hibernate.mapping.Column.getCheckConstraint()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.hibernate.mapping.Column.getCheckConstraint()方法的一些代码示例,展示了Column.getCheckConstraint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Column.getCheckConstraint()方法的具体详情如下:
包路径:org.hibernate.mapping.Column
类名称:Column
方法名:getCheckConstraint

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;

相关文章