HHH-7768 - Names of invalid named queries incorrectly concatenated
(cherry picked from commit dffb86c52d
)
This commit is contained in:
parent
8c5c986d8d
commit
0ef75629b9
|
@ -520,7 +520,7 @@ public final class SessionFactoryImpl
|
||||||
String sep = "";
|
String sep = "";
|
||||||
for ( Map.Entry<String,HibernateException> entry : errors.entrySet() ) {
|
for ( Map.Entry<String,HibernateException> entry : errors.entrySet() ) {
|
||||||
LOG.namedQueryError( entry.getKey(), entry.getValue() );
|
LOG.namedQueryError( entry.getKey(), entry.getValue() );
|
||||||
failingQueries.append( entry.getKey() ).append( sep );
|
failingQueries.append( sep ).append( entry.getKey() );
|
||||||
sep = ", ";
|
sep = ", ";
|
||||||
}
|
}
|
||||||
throw new HibernateException( failingQueries.toString() );
|
throw new HibernateException( failingQueries.toString() );
|
||||||
|
|
Loading…
Reference in New Issue