From 442c3268b35cdecd6b35c51a1527a0885aba1477 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 3 Apr 2013 11:20:52 -0500 Subject: [PATCH] HHH-8113 - Persistence.createEntityManagerFactory() should run schema export if JPA properties are set --- .../jdbc/internal/DDLFormatterImpl.java | 2 ++ .../org/hibernate/jpa/SchemaGenAction.java | 2 +- .../internal/schemagen/DatabaseTarget.java | 7 ++++--- .../schemagen/JdbcConnectionContext.java | 11 +++++++++- .../schemagen/JpaSchemaGenerator.java | 20 ++++++++++++------- 5 files changed, 30 insertions(+), 12 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/DDLFormatterImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/DDLFormatterImpl.java index 21ce4f7803..538bbc4a16 100755 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/DDLFormatterImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/DDLFormatterImpl.java @@ -34,6 +34,8 @@ import org.hibernate.internal.util.StringHelper; * @author Steve Ebersole */ public class DDLFormatterImpl implements Formatter { + public static final DDLFormatterImpl INSTANCE = new DDLFormatterImpl(); + /** * Format an SQL statement using simple rules