本文整理了Java中org.hibernate.mapping.Join.setKey()
方法的一些代码示例,展示了Join.setKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Join.setKey()
方法的具体详情如下:
包路径:org.hibernate.mapping.Join
类名称:Join
方法名:setKey
暂无
代码示例来源: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
SimpleValue key = new DependantValue( buildingContext, join.getTable(), persistentClass.getIdentifier() );
join.setKey( key );
join.setSequentialSelect( false );
代码示例来源:origin: hibernate/hibernate-orm
keyBinding.makeNationalized();
secondaryTableJoin.setKey( keyBinding );
代码示例来源: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: org.hibernate/hibernate-annotations
SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() );
join.setKey( key );
join.setSequentialSelect( false );
代码示例来源: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.setKey( key );
key.setCascadeDeleteEnabled( "cascade".equals( keyNode.attributeValue( "on-delete" ) ) );
bindSimpleValue( keyNode, key, false, persistentClass.getEntityName(), mappings );
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
join.setKey( key );
key.setCascadeDeleteEnabled( "cascade".equals( keyNode.attributeValue( "on-delete" ) ) );
bindSimpleValue( keyNode, key, false, persistentClass.getEntityName(), mappings );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
join.setKey( key );
key.setCascadeDeleteEnabled( "cascade".equals( keyNode.attributeValue( "on-delete" ) ) );
bindSimpleValue( keyNode, key, false, persistentClass.getEntityName(), mappings );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
join.setKey( key );
key.setCascadeDeleteEnabled( "cascade".equals( keyNode.attributeValue( "on-delete" ) ) );
bindSimpleValue( keyNode, key, false, persistentClass.getEntityName(), mappings );
代码示例来源:origin: org.hibernate.orm/hibernate-core
);
join.setKey( key );
join.setSequentialSelect( false );
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
join.setInverse( true );
SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() );
join.setKey( key );
join.setSequentialSelect( false );
join.setOptional( true ); //perhaps not quite per-spec, but a Good Thing anyway
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
join.setKey( key );
join.setSequentialSelect( false );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
join.setKey( key );
join.setSequentialSelect( false );
代码示例来源:origin: org.hibernate.orm/hibernate-core
keyBinding.makeNationalized();
secondaryTableJoin.setKey( keyBinding );
内容来源于网络,如有侵权,请联系作者删除!