Skip to content

Commit

Permalink
Fixed initialization of RDBMS data sources to retain data across app …
Browse files Browse the repository at this point in the history
…re-starts.
  • Loading branch information
scottfrederick committed Jan 2, 2014
1 parent d9843e2 commit 7b01c87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public JpaTransactionManager transactionManager(EntityManagerFactory entityManag

protected LocalContainerEntityManagerFactoryBean createEntityManagerFactoryBean(DataSource dataSource, String dialectClassName) {
Map<String, String> properties = new HashMap<String, String>();
properties.put(org.hibernate.cfg.Environment.HBM2DDL_AUTO, "create");
properties.put(org.hibernate.cfg.Environment.HBM2DDL_AUTO, "update");
properties.put(org.hibernate.cfg.Environment.DIALECT, dialectClassName);
properties.put(org.hibernate.cfg.Environment.SHOW_SQL, "true");

Expand Down

0 comments on commit 7b01c87

Please sign in to comment.