Skip to content

Commit 2f5a2be

Browse files
committed
Fix missing table error
1 parent aebd857 commit 2f5a2be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

repository/src/main/java/com/iluwatar/repository/App.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public static void main(String[] args) {
100100
System.out.println(person);
101101
}
102102

103+
repository.deleteAll();
104+
103105
context.close();
104106

105107
}

repository/src/main/resources/applicationContext.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
<property name="jpaProperties">
5555
<map>
5656
<entry key="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
57-
<entry key="hibernate.hbm2ddl.auto" value="create-drop" />
57+
<entry key="hibernate.hbm2ddl.auto" value="create" />
58+
<entry key="hibernate.show_sql" value="false" />
5859
</map>
5960
</property>
6061
</bean>

0 commit comments

Comments
 (0)