@SuppressWarnings({"unchecked", "ForLoopReplaceableByForEach"}) private void appendSelectExpressions(String[] columnNames, List selections, AliasGenerator aliasGenerator) { for ( int i = 0; i < columnNames.length; i++ ) { selections.add( new BasicSelectExpression( collectionTableAlias() + '.' + columnNames[i], aliasGenerator.generateAlias( columnNames[i] ) ) ); } }
private void appendSelectExpressions(String[] columnNames, List selections, AliasGenerator aliasGenerator) { for ( int i = 0; i < columnNames.length; i++ ) { selections.add( new BasicSelectExpression( collectionTableAlias() + '.' + columnNames[i], aliasGenerator.generateAlias( columnNames[i] ) ) ); } }
private void appendSelectExpressions(String[] columnNames, List selections, AliasGenerator aliasGenerator) { for ( int i = 0; i < columnNames.length; i++ ) { selections.add( new BasicSelectExpression( collectionTableAlias() + '.' + columnNames[i], aliasGenerator.generateAlias( columnNames[i] ) ) ); } }
private void determineKeySelectExpressions(QueryableCollection collectionPersister, List selections) { AliasGenerator aliasGenerator = new LocalAliasGenerator( 0 ); appendSelectExpressions( collectionPersister.getIndexColumnNames(), selections, aliasGenerator ); Type keyType = collectionPersister.getIndexType(); if ( keyType.isAssociationType() ) { EntityType entityType = (EntityType) keyType; Queryable keyEntityPersister = ( Queryable ) sfi().getEntityPersister( entityType.getAssociatedEntityName( sfi() ) ); SelectFragment fragment = keyEntityPersister.propertySelectFragmentFragment( collectionTableAlias(), null, false ); appendSelectExpressions( fragment, selections, aliasGenerator ); } }
private void determineKeySelectExpressions(QueryableCollection collectionPersister, List selections) { AliasGenerator aliasGenerator = new LocalAliasGenerator( 0 ); appendSelectExpressions( collectionPersister.getIndexColumnNames(), selections, aliasGenerator ); Type keyType = collectionPersister.getIndexType(); if ( keyType.isAssociationType() ) { EntityType entityType = (EntityType) keyType; Queryable keyEntityPersister = ( Queryable ) sfi().getEntityPersister( entityType.getAssociatedEntityName( sfi() ) ); SelectFragment fragment = keyEntityPersister.propertySelectFragmentFragment( collectionTableAlias(), null, false ); appendSelectExpressions( fragment, selections, aliasGenerator ); } }