#55 Changed Hibernate to create-drop mode
This commit is contained in:
parent
918e489f9b
commit
c6cf96b641
@ -5,6 +5,7 @@ import java.util.List;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
|
||||
"applicationContext.xml");
|
||||
|
@ -8,7 +8,6 @@
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
|
||||
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd">
|
||||
|
||||
<!-- Directory to scan for repository classes -->
|
||||
<jpa:repositories base-package="com.iluwatar" />
|
||||
|
||||
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
|
||||
@ -33,7 +32,7 @@
|
||||
<property name="jpaProperties">
|
||||
<map>
|
||||
<entry key="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
|
||||
<entry key="hibernate.hbm2ddl.auto" value="update" />
|
||||
<entry key="hibernate.hbm2ddl.auto" value="create-drop" />
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
Loading…
x
Reference in New Issue
Block a user