HHH-13513 Do not intern sql aliases in QueryLoader and BasicLoader

This commit is contained in:
Sanne Grinovero 2019-07-25 11:48:43 +01:00 committed by Andrea Boriero
parent a199f77b83
commit bfe5f235c1
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ public abstract class BasicLoader extends Loader {
String[] suffixes = new String[length];
for ( int i = 0; i < length; i++ ) {
suffixes[i] = (Integer.toString( i + seed ) + "_").intern();
suffixes[i] = Integer.toString( i + seed ) + '_';
}
return suffixes;
}

View File

@ -160,7 +160,7 @@ public class QueryLoader extends BasicLoader {
entityAliases[i] = element.getClassAlias();
sqlAliasByEntityAlias.put( entityAliases[i], sqlAliases[i] );
// TODO should we just collect these like with the collections above?
sqlAliasSuffixes[i] = ( size == 1 ) ? "" : (Integer.toString( i ) + "_").intern();
sqlAliasSuffixes[i] = ( size == 1 ) ? "" : (Integer.toString( i ) + '_');
// sqlAliasSuffixes[i] = element.getColumnAliasSuffix();
includeInSelect[i] = !element.isFetch();
if ( includeInSelect[i] ) {