X Tutup
Skip to content

Commit c6cf96b

Browse files
committed
iluwatar#55 Changed Hibernate to create-drop mode
1 parent 918e489 commit c6cf96b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.context.support.ClassPathXmlApplicationContext;
66

77
public class App {
8+
89
public static void main(String[] args) {
910
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
1011
"applicationContext.xml");

repository/src/main/resources/applicationContext.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
99
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd">
1010

11-
<!-- Directory to scan for repository classes -->
1211
<jpa:repositories base-package="com.iluwatar" />
1312

1413
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
@@ -33,7 +32,7 @@
3332
<property name="jpaProperties">
3433
<map>
3534
<entry key="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
36-
<entry key="hibernate.hbm2ddl.auto" value="update" />
35+
<entry key="hibernate.hbm2ddl.auto" value="create-drop" />
3736
</map>
3837
</property>
3938
</bean>

0 commit comments

Comments
 (0)
X Tutup