|
|
@@ -5,7 +5,7 @@
|
|
5
|
5
|
|
|
6
|
6
|
<!--
|
|
7
|
7
|
Properties
|
|
8
|
|
- -->
|
|
|
8
|
+ -->
|
|
9
|
9
|
<bean id="propertyConfigurer"
|
|
10
|
10
|
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
11
|
11
|
<property name="locations">
|
|
|
@@ -18,32 +18,35 @@
|
|
18
|
18
|
|
|
19
|
19
|
<!--
|
|
20
|
20
|
Beans
|
|
21
|
|
- -->
|
|
|
21
|
+ -->
|
|
22
|
22
|
<bean id="cargoRepository" class="se.citerus.dddsample.repository.CargoRepositoryInMem">
|
|
23
|
23
|
</bean>
|
|
24
|
24
|
|
|
|
25
|
+ <bean id="cargoService" class="se.citerus.dddsample.service.CargoServiceImpl">
|
|
|
26
|
+ <property name="cargoRepository" ref="cargoRepository" />
|
|
|
27
|
+ </bean>
|
|
25
|
28
|
|
|
26
|
29
|
|
|
27
|
|
-<!--
|
|
28
|
|
- <bean id="testDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
|
30
|
+ <!--
|
|
|
31
|
+ <bean id="testDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
29
|
32
|
<property name="driverClassName" value="${jdbc.driverClassName}" />
|
|
30
|
33
|
<property name="url" value="${jdbc.url}" />
|
|
31
|
34
|
<property name="username" value="${jdbc.username}" />
|
|
32
|
35
|
<property name="password" value="${jdbc.password}" />
|
|
33
|
|
- </bean>
|
|
34
|
|
-
|
|
35
|
|
- <bean id="hibernateSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
|
|
36
|
+ </bean>
|
|
|
37
|
+
|
|
|
38
|
+ <bean id="hibernateSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
|
36
|
39
|
<property name="dataSource" ref="testataSource" />
|
|
37
|
40
|
<property name="mappingResources">
|
|
38
|
|
- <list>
|
|
39
|
|
- <value>cargo.hbm.xml</value>
|
|
40
|
|
- </list>
|
|
|
41
|
+ <list>
|
|
|
42
|
+ <value>cargo.hbm.xml</value>
|
|
|
43
|
+ </list>
|
|
41
|
44
|
</property>
|
|
42
|
45
|
<property name="hibernateProperties">
|
|
43
|
|
- <value>
|
|
44
|
|
- hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
|
45
|
|
- </value>
|
|
|
46
|
+ <value>
|
|
|
47
|
+ hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
|
|
48
|
+ </value>
|
|
46
|
49
|
</property>
|
|
47
|
|
- </bean>
|
|
48
|
|
- -->
|
|
|
50
|
+ </bean>
|
|
|
51
|
+ -->
|
|
49
|
52
|
</beans>
|