HHH-7768 - Names of invalid named queries incorrectly concatenated

(cherry picked from commit dffb86c52d)
This commit is contained in:
Steve Ebersole 2012-11-08 13:09:48 -06:00
parent 8c5c986d8d
commit 0ef75629b9
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ public final class SessionFactoryImpl
String sep = "";
for ( Map.Entry<String,HibernateException> entry : errors.entrySet() ) {
LOG.namedQueryError( entry.getKey(), entry.getValue() );
failingQueries.append( entry.getKey() ).append( sep );
failingQueries.append( sep ).append( entry.getKey() );
sep = ", ";
}
throw new HibernateException( failingQueries.toString() );