Work on DAO example. Table per class strategy. Persist fixes.

This commit is contained in:
Ilkka Seppala
2015-04-13 22:08:01 +03:00
parent 82eebeaee0
commit 08c3145c47
6 changed files with 82 additions and 23 deletions

View File

@ -27,7 +27,7 @@ public abstract class DaoBase<E extends BaseEntity> {
.setProperty("hibernate.connection.url", "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
.setProperty("hibernate.current_session_context_class", "thread")
.setProperty("hibernate.show_sql", "true")
.setProperty("hibernate.hbm2ddl.auto", "create")
.setProperty("hibernate.hbm2ddl.auto", "create-drop")
.buildSessionFactory();
return sessionFactory;
}