Fix missing table error

This commit is contained in:
Ilkka Seppälä 2016-03-25 22:00:08 +02:00
parent aebd857931
commit 2f5a2be27a
2 changed files with 4 additions and 1 deletions

View File

@ -100,6 +100,8 @@ public class App {
System.out.println(person);
}
repository.deleteAll();
context.close();
}

View File

@ -54,7 +54,8 @@
<property name="jpaProperties">
<map>
<entry key="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
<entry key="hibernate.hbm2ddl.auto" value="create-drop" />
<entry key="hibernate.hbm2ddl.auto" value="create" />
<entry key="hibernate.show_sql" value="false" />
</map>
</property>
</bean>