diff --git a/spring-hibernate3-dao/pom.xml b/spring-hibernate3-dao/pom.xml index 8458cd7b72..d2adea1f25 100644 --- a/spring-hibernate3-dao/pom.xml +++ b/spring-hibernate3-dao/pom.xml @@ -34,6 +34,11 @@ hibernate-core 3.6.10.Final + + org.javassist + javassist + 3.17.1-GA + mysql mysql-connector-java diff --git a/spring-hibernate3-dao/src/main/java/org/baeldung/spring/persistence/config/PersistenceConfig.java b/spring-hibernate3-dao/src/main/java/org/baeldung/spring/persistence/config/PersistenceConfig.java index 13922658a6..f6a0e0d76f 100644 --- a/spring-hibernate3-dao/src/main/java/org/baeldung/spring/persistence/config/PersistenceConfig.java +++ b/spring-hibernate3-dao/src/main/java/org/baeldung/spring/persistence/config/PersistenceConfig.java @@ -69,6 +69,8 @@ public class PersistenceConfig { return new Properties() { { setProperty("hibernate.hbm2ddl.auto", env.getProperty("hibernate.hbm2ddl.auto")); + setProperty("hibernate.dialect", env.getProperty("hibernate.dialect")); + // setProperty("hibernate.globally_quoted_identifiers", "true"); // note: necessary in launchpad-storage, but causing problems here } diff --git a/spring-hibernate4-dao/pom.xml b/spring-hibernate4-dao/pom.xml index ca2aacde8e..940289493d 100644 --- a/spring-hibernate4-dao/pom.xml +++ b/spring-hibernate4-dao/pom.xml @@ -31,13 +31,13 @@ org.hibernate - hibernate-entitymanager + hibernate-core 4.2.1.Final - org.hibernate - hibernate-core - 4.2.1.Final + org.javassist + javassist + 3.17.1-GA mysql