<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="sessionFactory" class="com.casic.PgInterface.core.hibernate.RecoverableSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="packagesToScan" value="${application.domain.packages}"/>
		<property name="hibernateProperties" ref="applicationProperties"/>
    </bean>

	<bean id="transactionManager" class="com.casic.PgInterface.core.hibernate.ReadOnlyTransactionManager">
		<property name="platformTransactionManager">
			<bean class="org.springframework.orm.hibernate4.HibernateTransactionManager">
				<property name="sessionFactory" ref="sessionFactory" />
			</bean>
		</property>
	</bean>

</beans>
