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