TASKPM/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml

101 lines
4.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="dataSourceReal"
class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close"
p:driverClass="${jdbcDriver.className}" p:jdbcUrl="${testDataSource.url}"
p:username="${testDataSource.user}" p:password="${testDataSource.password}"
p:maxConnectionsPerPartition="10"
p:minConnectionsPerPartition="4"
p:partitionCount="3"/>
<bean id="dataSource"
class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy"
p:targetDataSource-ref="dataSourceReal" />
<!-- Hibernate Session Factory. -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
p:dataSource-ref="dataSource"
p:configLocation="classpath:/libreplan-webapp-hibernate-test.cfg.xml">
<!--
FIXME: ideally this chunk of XML should be only in
src/main/resources/libreplan-business-spring-config.xml.
-->
<property name="mappingResources">
<list>
<value>
org/libreplan/business/advance/entities/Advance.hbm.xml
</value>
<value>
org/libreplan/business/resources/entities/Resources.hbm.xml
</value>
<value>
org/libreplan/business/orders/entities/Orders.hbm.xml
</value>
<value>
org/libreplan/business/templates/entities/Templates.hbm.xml
</value>
<value>
org/libreplan/business/planner/entities/Tasks.hbm.xml
</value>
<value>
org/libreplan/business/workreports/entities/WorkReports.hbm.xml
</value>
<value>
org/libreplan/business/planner/entities/ResourceAllocations.hbm.xml
</value>
<value>
org/libreplan/business/calendars/entities/Calendars.hbm.xml
</value>
<value>
org/libreplan/business/labels/entities/Labels.hbm.xml
</value>
<value>
org/libreplan/business/requirements/entities/Requirements.hbm.xml
</value>
<value>
org/libreplan/business/common/entities/Configuration.hbm.xml
</value>
<value>
org/libreplan/business/materials/entities/Materials.hbm.xml
</value>
<value>
org/libreplan/business/users/entities/Users.hbm.xml
</value>
<value>
org/libreplan/business/costcategories/entities/CostCategories.hbm.xml
</value>
<value>
org/libreplan/business/qualityforms/entities/QualityForms.hbm.xml
</value>
<value>
org/libreplan/business/common/entities/EntitySequence.hbm.xml
</value>
<value>
org/libreplan/business/externalcompanies/entities/ExternalCompanies.hbm.xml
</value>
<value>
org/libreplan/business/planner/entities/AdvanceConsolidations.hbm.xml
</value>
<value>
org/libreplan/business/planner/entities/SubcontractorCommunication.hbm.xml
</value>
<value>
org/libreplan/business/scenarios/entities/Scenarios.hbm.xml
</value>
</list>
</property>
</bean>
</beans>