Skip to content

Commit 38c005a

Browse files
author
mackos
committed
Merge pull request citerus#4 from citerus/bump-hibernate
Bump Hibernate from 3 to 4.
2 parents 19738c3 + 97d7574 commit 38c005a

File tree

15 files changed

+27
-27
lines changed

15 files changed

+27
-27
lines changed

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
<dependency>
170170
<groupId>org.hibernate</groupId>
171171
<artifactId>hibernate-core</artifactId>
172-
<version>3.3.1.GA</version>
172+
<version>4.3.5.Final</version>
173173
<!-- God, what is it with Java and logging frameworks... http://forum.hibernate.org/viewtopic.php?p=2401380 -->
174174
<exclusions>
175175
<exclusion>
@@ -178,7 +178,12 @@
178178
</exclusion>
179179
</exclusions>
180180
</dependency>
181-
<dependency>
181+
<dependency>
182+
<groupId>commons-collections</groupId>
183+
<artifactId>commons-collections</artifactId>
184+
<version>3.2.1</version>
185+
</dependency>
186+
<dependency>
182187
<groupId>org.slf4j</groupId>
183188
<artifactId>slf4j-log4j12</artifactId>
184189
<version>1.5.6</version>
@@ -198,11 +203,6 @@
198203
<artifactId>javassist</artifactId>
199204
<version>3.8.0.GA</version>
200205
</dependency>
201-
<dependency>
202-
<groupId>org.hibernate</groupId>
203-
<artifactId>hibernate-annotations</artifactId>
204-
<version>3.4.0.GA</version>
205-
</dependency>
206206
<dependency>
207207
<groupId>commons-lang</groupId>
208208
<artifactId>commons-lang</artifactId>
@@ -219,9 +219,9 @@
219219
<version>1.2.2</version>
220220
</dependency>
221221
<dependency>
222-
<groupId>hsqldb</groupId>
222+
<groupId>org.hsqldb</groupId>
223223
<artifactId>hsqldb</artifactId>
224-
<version>1.8.0.7</version>
224+
<version>2.3.3</version>
225225
</dependency>
226226
<dependency>
227227
<groupId>javax.servlet</groupId>

src/main/java/se/citerus/dddsample/application/util/SampleDataGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package se.citerus.dddsample.application.util;
22

33
import org.hibernate.SessionFactory;
4-
import org.hibernate.classic.Session;
4+
import org.hibernate.Session;
55
import org.springframework.beans.factory.BeanFactoryUtils;
66
import org.springframework.jdbc.core.JdbcTemplate;
77
import org.springframework.transaction.PlatformTransactionManager;

src/main/resources/context-infrastructure-persistence.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
<property name="defaultAutoCommit" value="false"/>
2323
</bean>
2424

25-
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
25+
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
2626
<property name="dataSource" ref="dataSource"/>
2727
<property name="configLocation" value="classpath:/hibernate.cfg.xml"/>
2828
</bean>
2929

30-
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
30+
<bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
3131
<property name="sessionFactory" ref="sessionFactory"/>
3232
</bean>
3333

src/main/resources/context-interfaces.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<!-- RMI exposed booking service facade, which operates in an open Hibernate session -->
4040

4141

42-
<bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
42+
<bean id="hibernateInterceptor" class="org.springframework.orm.hibernate4.support.OpenSessionInterceptor">
4343
<property name="sessionFactory" ref="sessionFactory"/>
4444
</bean>
4545

@@ -87,7 +87,7 @@
8787
</bean>
8888

8989
<bean id="openSessionInViewInterceptor"
90-
class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor">
90+
class="org.springframework.orm.hibernate4.support.OpenSessionInViewInterceptor">
9191
<property name="sessionFactory" ref="sessionFactory"/>
9292
</bean>
9393

src/main/resources/hibernate.cfg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-configuration PUBLIC
44
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
66

77
<hibernate-configuration>
88

src/main/resources/se/citerus/dddsample/infrastructure/persistence/hibernate/Cargo.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-mapping PUBLIC
44
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
66

77
<hibernate-mapping default-access="field">
88
<class name="se.citerus.dddsample.domain.model.cargo.Cargo" table="Cargo">

src/main/resources/se/citerus/dddsample/infrastructure/persistence/hibernate/CarrierMovement.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-mapping PUBLIC
44
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
66

77
<hibernate-mapping default-access="field">
88
<class name="se.citerus.dddsample.domain.model.voyage.CarrierMovement" table="CarrierMovement" mutable="false">

src/main/resources/se/citerus/dddsample/infrastructure/persistence/hibernate/HandlingEvent.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-mapping PUBLIC
44
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
66

77
<hibernate-mapping default-access="field">
88
<class name="se.citerus.dddsample.domain.model.handling.HandlingEvent" table="HandlingEvent">

src/main/resources/se/citerus/dddsample/infrastructure/persistence/hibernate/Leg.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-mapping PUBLIC
44
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
66

77
<hibernate-mapping default-access="field">
88
<class name="se.citerus.dddsample.domain.model.cargo.Leg" table="Leg" mutable="false">

src/main/resources/se/citerus/dddsample/infrastructure/persistence/hibernate/Location.hbm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE hibernate-mapping PUBLIC
44
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
5-
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5+
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
66

77
<hibernate-mapping default-access="field">
88
<class name="se.citerus.dddsample.domain.model.location.Location" table="Location">

0 commit comments

Comments
 (0)