日期:2014-05-20 浏览次数:21144 次
<bean id="myhibTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sf"></property>
</bean>
<bean id="tUserBizTarget" class="com.accp.biz.TUserBiz">
<property name="TUserDao" ref="tUserDao"></property>
</bean>
<bean id="tUserBiz" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="myhibTransactionManager"></property>
<property name="target" ref="tUserBizTarget"></property>
<property name="transactionAttributes">
<props>
<prop key="add*">PROPAGATION_REQUIRED</prop>
<prop key="del*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>