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

x33g5p2x  于2022-01-22 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(203)

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

Join.createForeignKey介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

private void bindJoinToPersistentClass(Join join, Ejb3JoinColumn[] ejb3JoinColumns, MetadataBuildingContext buildingContext) {
  SimpleValue key = new DependantValue( buildingContext, join.getTable(), persistentClass.getIdentifier() );
  join.setKey( key );
  setFKNameIfDefined( join );
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, buildingContext );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: hibernate/hibernate-orm

secondaryTableJoin.createForeignKey();

代码示例来源:origin: org.hibernate/hibernate-annotations

private void bindJoinToPersistentClass(
    Join join, Ejb3JoinColumn[] ejb3JoinColumns
) {
  SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() );
  join.setKey( key );
  setFKNameIfDefined( join );
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, mappings );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public static void bindJoinToPersistentClass(
    Join join, Ejb3JoinColumn[] ejb3JoinColumns, PersistentClass persistentClass, ExtendedMappings mappings
) {
  SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() );
  join.setKey( key );
  join.setSequentialSelect( false );
  join.setInverse( false );
  join.setOptional( true ); //perhaps not quite per-spec, but a Good Thing anyway
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, mappings );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

private void bindJoinToPersistentClass(Join join, Ejb3JoinColumn[] ejb3JoinColumns, Mappings mappings) {
  SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
  join.setKey( key );
  setFKNameIfDefined( join );
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, mappings );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

private void bindJoinToPersistentClass(Join join, Ejb3JoinColumn[] ejb3JoinColumns, Mappings mappings) {
  SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
  join.setKey( key );
  setFKNameIfDefined( join );
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, mappings );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

private void bindJoinToPersistentClass(Join join, Ejb3JoinColumn[] ejb3JoinColumns, MetadataBuildingContext buildingContext) {
  SimpleValue key = new DependantValue(
      buildingContext,
      join.getTable(),
      persistentClass.getIdentifier()
  );
  join.setKey( key );
  setFKNameIfDefined( join );
  key.setCascadeDeleteEnabled( false );
  TableBinder.bindFk( persistentClass, null, ejb3JoinColumns, key, false, buildingContext );
  join.createPrimaryKey();
  join.createForeignKey();
  persistentClass.addJoin( join );
}

代码示例来源:origin: hibernate/hibernate

join.createForeignKey();

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

join.createForeignKey();

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

join.createForeignKey();

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

join.createForeignKey();

代码示例来源:origin: org.hibernate.orm/hibernate-core

.forEach( column -> key.addColumn( ( (Column) column ).clone() ) );
persistentClass.addJoin( join );
join.createForeignKey();
return join;

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

join.createForeignKey();
persistentClass.addJoin( join );
return join;

代码示例来源:origin: org.hibernate.orm/hibernate-core

secondaryTableJoin.createForeignKey();

相关文章