HHH-13513 Do not intern sql aliases in QueryLoader and BasicLoader
This commit is contained in:
parent
a199f77b83
commit
bfe5f235c1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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] ) {
|
||||
|
|
Loading…
Reference in New Issue