diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/schemagen/DatabaseTarget.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/schemagen/DatabaseTarget.java index d28177c09a..93068cea6b 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/schemagen/DatabaseTarget.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/schemagen/DatabaseTarget.java @@ -62,7 +62,8 @@ class DatabaseTarget implements GenerationTarget { } catch (SQLException e) { throw new PersistenceException( - "Unable to execute JPA schema generation create command [" + command + "]" + "Unable to execute JPA schema generation create command [" + command + "]", + e ); } } @@ -93,7 +94,7 @@ class DatabaseTarget implements GenerationTarget { } catch (SQLException e) { // Just log the error because drop commands are often unsuccessful because the tables do not yet exist... - log.warn( String.format( "Unable to execute JPA schema generation drop command [%s]", command ), e ); + log.warnf( "Unable to execute JPA schema generation drop command [" + command + "]", e ); } } }