2009-04-14 17:51:03 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2016-08-04 14:17:35 +03:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xmlns:p="http://www.springframework.org/schema/p"
|
|
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
2016-05-24 16:55:13 +03:00
|
|
|
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
2014-05-06 18:39:06 +02:00
|
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
|
|
|
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
|
2009-05-14 19:19:59 +02:00
|
|
|
|
2010-03-16 12:30:21 +01:00
|
|
|
<aop:aspectj-autoproxy/>
|
|
|
|
|
|
2016-10-17 16:54:49 +03:00
|
|
|
<!-- Data source -->
|
2009-05-14 19:19:59 +02:00
|
|
|
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"
|
2016-05-10 15:30:26 +03:00
|
|
|
p:jndiName="${dataSource.jndiName}" p:resourceRef="true" />
|
2009-05-14 19:19:59 +02:00
|
|
|
|
2016-08-04 14:17:35 +03:00
|
|
|
<!-- Letting Spring do automatically exception translation -->
|
|
|
|
|
<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>
|
2009-08-05 14:07:15 +02:00
|
|
|
|
2016-10-17 16:54:49 +03:00
|
|
|
<!-- Hibernate Session Factory -->
|
2009-04-14 17:51:03 +02:00
|
|
|
<bean id="sessionFactory"
|
2016-05-24 16:55:13 +03:00
|
|
|
class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"
|
|
|
|
|
p:dataSource-ref="dataSource"
|
|
|
|
|
p:configLocation="classpath:/libreplan-business-hibernate.cfg.xml">
|
2009-04-14 17:51:03 +02:00
|
|
|
<property name="mappingResources">
|
|
|
|
|
<list>
|
2009-07-30 09:35:03 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/advance/entities/Advance.hbm.xml
|
2009-07-30 09:35:03 +02:00
|
|
|
</value>
|
2009-05-14 19:19:59 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/resources/entities/Resources.hbm.xml
|
2009-05-14 19:19:59 +02:00
|
|
|
</value>
|
2009-05-28 20:19:12 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/orders/entities/Orders.hbm.xml
|
2009-05-28 20:19:12 +02:00
|
|
|
</value>
|
2010-01-03 17:18:27 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/templates/entities/Templates.hbm.xml
|
2010-01-03 17:18:27 +01:00
|
|
|
</value>
|
2009-07-07 21:37:11 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/planner/entities/Tasks.hbm.xml
|
2009-07-07 21:37:11 +02:00
|
|
|
</value>
|
2009-07-24 13:45:01 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/planner/entities/ResourceAllocations.hbm.xml
|
2009-07-24 13:45:01 +02:00
|
|
|
</value>
|
2009-07-15 12:22:41 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/workreports/entities/WorkReports.hbm.xml
|
2009-07-15 12:22:41 +02:00
|
|
|
</value>
|
2009-08-13 13:00:55 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/calendars/entities/Calendars.hbm.xml
|
2009-08-13 13:00:55 +02:00
|
|
|
</value>
|
2009-09-14 09:07:51 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/labels/entities/Labels.hbm.xml
|
2009-09-14 09:07:51 +02:00
|
|
|
</value>
|
2009-10-27 16:25:14 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/requirements/entities/Requirements.hbm.xml
|
2009-10-27 16:25:14 +01:00
|
|
|
</value>
|
2009-11-17 12:36:14 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/common/entities/Configuration.hbm.xml
|
2009-11-17 12:36:14 +01:00
|
|
|
</value>
|
2009-11-23 10:46:52 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/materials/entities/Materials.hbm.xml
|
2009-11-23 10:46:52 +01:00
|
|
|
</value>
|
2009-11-26 15:28:43 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/users/entities/Users.hbm.xml
|
2009-11-26 15:28:43 +01:00
|
|
|
</value>
|
2009-12-02 20:58:15 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/costcategories/entities/CostCategories.hbm.xml
|
2009-12-02 20:58:15 +01:00
|
|
|
</value>
|
2009-12-14 19:12:49 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/qualityforms/entities/QualityForms.hbm.xml
|
2009-12-14 19:12:49 +01:00
|
|
|
</value>
|
2010-10-13 19:30:26 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/common/entities/EntitySequence.hbm.xml
|
2010-10-13 19:30:26 +02:00
|
|
|
</value>
|
2010-01-04 15:58:20 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/externalcompanies/entities/ExternalCompanies.hbm.xml
|
2010-01-04 15:58:20 +01:00
|
|
|
</value>
|
2010-04-29 10:00:01 +02:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/planner/entities/AdvanceConsolidations.hbm.xml
|
2010-04-29 10:00:01 +02:00
|
|
|
</value>
|
2011-11-15 09:50:17 +01:00
|
|
|
<value>
|
2011-11-22 16:31:26 +01:00
|
|
|
org/libreplan/business/planner/entities/SubcontractorCommunication.hbm.xml
|
2011-11-15 09:50:17 +01:00
|
|
|
</value>
|
2010-03-17 10:01:29 +01:00
|
|
|
<value>
|
2011-10-28 08:17:54 +02:00
|
|
|
org/libreplan/business/scenarios/entities/Scenarios.hbm.xml
|
2010-03-17 10:01:29 +01:00
|
|
|
</value>
|
2012-04-12 19:46:35 +01:00
|
|
|
<value>
|
|
|
|
|
org/libreplan/business/expensesheets/entities/ExpenseSheets.hbm.xml
|
|
|
|
|
</value>
|
2013-01-17 09:50:51 +01:00
|
|
|
<value>
|
2013-02-27 14:41:48 +01:00
|
|
|
org/libreplan/business/common/entities/Connector.hbm.xml
|
2013-01-17 09:50:51 +01:00
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
org/libreplan/business/common/entities/JobSchedulerConfiguration.hbm.xml
|
|
|
|
|
</value>
|
2015-10-26 08:50:43 +02:00
|
|
|
<value>
|
|
|
|
|
org/libreplan/business/email/entities/Email.hbm.xml
|
|
|
|
|
</value>
|
2015-12-04 15:39:56 +02:00
|
|
|
<value>
|
|
|
|
|
org/libreplan/business/logs/entities/Logs.hbm.xml
|
|
|
|
|
</value>
|
2015-12-17 16:02:48 +02:00
|
|
|
<value>
|
|
|
|
|
org/libreplan/business/common/entities/Limits.hbm.xml
|
|
|
|
|
</value>
|
2013-01-17 09:50:51 +01:00
|
|
|
</list>
|
2009-04-14 17:51:03 +02:00
|
|
|
</property>
|
|
|
|
|
</bean>
|
2009-05-14 19:19:59 +02:00
|
|
|
|
2009-04-14 17:51:03 +02:00
|
|
|
<!-- Spring Transaction manager -->
|
|
|
|
|
<bean id="transactionManager"
|
2016-08-04 14:17:35 +03:00
|
|
|
class="org.springframework.orm.hibernate5.HibernateTransactionManager"
|
|
|
|
|
p:sessionFactory-ref="sessionFactory" />
|
2009-05-14 19:19:59 +02:00
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<!-- Enable configuration of transactional behavior based on annotations -->
|
2009-05-14 19:19:59 +02:00
|
|
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
|
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<!-- For enabling annotation-based configuration (in particular, required for Autowired annotation) -->
|
2009-05-14 19:19:59 +02:00
|
|
|
<context:annotation-config />
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
<context:component-scan base-package="org.libreplan.business" />
|
2009-05-15 16:05:06 +02:00
|
|
|
|
2016-05-10 15:30:26 +03:00
|
|
|
<bean id="registry" class="org.libreplan.business.common.Registry" factory-method="getInstance" />
|
2009-08-07 17:06:15 +02:00
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<bean id="criterionRequirementOrderElementHandler"
|
2016-05-24 16:55:13 +03:00
|
|
|
class="org.libreplan.business.orders.entities.CriterionRequirementOrderElementHandler"
|
|
|
|
|
factory-method="getInstance" />
|
2009-11-09 18:31:35 +01:00
|
|
|
|
2011-07-01 09:46:36 +02:00
|
|
|
<bean id="versionInformation"
|
2016-05-24 16:55:13 +03:00
|
|
|
class="org.libreplan.business.common.VersionInformation"
|
|
|
|
|
factory-method="getInstance"
|
|
|
|
|
lazy-init="false">
|
2016-05-12 17:41:35 +03:00
|
|
|
<property name="projectVersion" value="${project.version}"/>
|
2010-12-15 12:04:40 +01:00
|
|
|
</bean>
|
|
|
|
|
|
2011-07-01 09:46:36 +02:00
|
|
|
<bean id="configuration"
|
2016-05-24 16:55:13 +03:00
|
|
|
class="org.libreplan.business.common.Configuration"
|
|
|
|
|
factory-method="getInstance"
|
|
|
|
|
lazy-init="false">
|
2016-05-12 17:41:35 +03:00
|
|
|
<property name="defaultPasswordsControl" value="${default.passwordsControl}"/>
|
|
|
|
|
<property name="exampleUsersDisabled" value="${default.exampleUsersDisabled}"/>
|
|
|
|
|
<property name="emailSendingEnabled" value="${default.emailSendingEnabled}"/>
|
2011-01-31 14:30:02 +01:00
|
|
|
</bean>
|
|
|
|
|
|
2016-05-12 17:41:35 +03:00
|
|
|
<bean id="scenarioManager" class="org.libreplan.business.scenarios.OnlyMainScenarioAwareManager"/>
|
2010-04-07 17:28:14 +02:00
|
|
|
|
2009-04-14 17:51:03 +02:00
|
|
|
</beans>
|