<bean id="transiantJHY"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
<property name="transactionManager"><ref bean="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="del*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="select*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource"><ref bean="parentDataSource"/></property>
</bean> <bean id="pacSalesLegalService" parent="transiantJHY">
<property name="target">
<bean class="com.cn.pj.serivce.imp.SalesLegalSeriveImp">
<property name="hibernateTemplate" ref="ptsHibernateTemplate"></property>
</bean>
</property>
</bean>
在SalesLegalSeriveImp中定义了updateDB()。并让其中一条更新语句异常。 怎么还更新进去了呢。 请帮忙看看哪里出了问题?谢谢啦
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
<property name="transactionManager"><ref bean="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="del*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="select*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource"><ref bean="parentDataSource"/></property>
</bean> <bean id="pacSalesLegalService" parent="transiantJHY">
<property name="target">
<bean class="com.cn.pj.serivce.imp.SalesLegalSeriveImp">
<property name="hibernateTemplate" ref="ptsHibernateTemplate"></property>
</bean>
</property>
</bean>
在SalesLegalSeriveImp中定义了updateDB()。并让其中一条更新语句异常。 怎么还更新进去了呢。 请帮忙看看哪里出了问题?谢谢啦
解决方案 »
- org.hibernate.QueryParameterException: Position beyond number of declared ordina
- spring 整合 hessian问题
- 怎样快速开始投入开发?
- lomboz_eclipse不能正常启动JSP server的问题,谢谢·
- 处理soap中附件的技术,我知道有jaf,还有其他的么
- 100分求struts+hibernate+oracle项目题???
- Struts基本问题 请求释疑,多谢!
- 查询问题,知道的帮帮忙!!!解决就给分!!!
- ajax传递数据到后台获取的是空值,求大神指导
- 如何将一个存放姓名的list把同姓的人名放一起~求思路,具体顺序没关系
- eclipse3.2.1用哪个版本的Myeclipse
- RMI实现类是实现Runable多线程的悲剧
<property name="sessionFactory">
<ref bean="sessionfactory" />
</property>
</bean>
漏了一段