join.setInverse( true ); SimpleValue key = new DependantValue( buildingContext, join.getTable(), persistentClass.getIdentifier() );
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
secondaryTableJoin.setInverse( secondaryTableSource.isInverse() ); secondaryTableJoin.setOptional( secondaryTableSource.isOptional() );
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
join.setInverse( true ); SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() );
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 ); }
if ( invNode != null ) join.setInverse( "true".equals( invNode.getValue() ) );
join.setInverse( "true".equals( invNode.getValue() ) );
join.setInverse( "true".equals( invNode.getValue() ) );
join.setInverse( "true".equals( invNode.getValue() ) );
join.setInverse( true ); SimpleValue key = new DependantValue( buildingContext,
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
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
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
join.setInverse( true ); SimpleValue key = new DependantValue( join.getTable(), persistentClass.getIdentifier() ); join.setKey( key );
join.setInverse( true ); SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
join.setInverse( true ); SimpleValue key = new DependantValue( mappings, join.getTable(), persistentClass.getIdentifier() );
secondaryTableJoin.setInverse( secondaryTableSource.isInverse() ); secondaryTableJoin.setOptional( secondaryTableSource.isOptional() );