My other config file applicationContext-hibernate.xml is as follows:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!--
- A parent bean definition which is a base definition for transaction proxies.
- It's marked as abstract, since it's not supposed to be instantiated itself.
- We set shared transaction attributes here, following our naming patterns.
- The attributes can still be overridden in child bean definitions.
-->
<bean id="baseTransactionProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
abstract="true">
<property name="transactionManager"><ref bean="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
<!--
- RMT primary business object (default implementation), as an inner bean wrapped
- by an outer transactional proxy. The two bean definitions could have been separate,
- but this is cleaner as there is no need to ever access the unwrapped object.
-->
<bean id="RMT" parent="baseTransactionProxy">
<property name="target">
<bean class="com.apple.irmt.domain.logic.iRMTImpl">
<property name="projectDao"><ref bean="projectDao"/></property>
<property name="requirementDao"><ref bean="requirementDao"/></property>
<property name="resourceDao"><ref bean="resourceDao"/></property>
</bean>
</property>
</bean>
</beans>