沙漠中的魚

          欲上天堂,先下地獄
          posts - 0, comments - 56, trackbacks - 0, articles - 119
            BlogJava :: 首頁 ::  :: 聯系 :: 聚合  :: 管理

          Spirng業務服務層配置事務配置

          Posted on 2009-03-11 16:58 沙漠中的魚 閱讀(328) 評論(0)  編輯  收藏 所屬分類: 開源框架
          <!--Hibernate事務管理配置--> 
            
          <bean id="hibernateTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> 
              
          <property name="sessionFactory"> 
                
          <ref local="sessionFactory"/> 
              
          </property> 
            
          </bean> 
            
          <bean id="hibernateTransactionProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true"> 
                
          <property name="transactionManager" ref="hibernateTransactionManager" /> 
              
          <property name="transactionAttributes"> 
                  
          <props> 
                      
          <prop key="find*">PROPAGATION_REQUIRED,readOnly </prop> 
                      
          <prop key="create*">PROPAGATION_REQUIRED,-Exception </prop> 
                      
          <prop key="delete*">PROPAGATION_REQUIRED,-Exception </prop> 
                      
          <prop key="update*">PROPAGATION_REQUIRED,-Exception </prop> 
                      
          <prop key="save*">PROPAGATION_REQUIRED,-Exception </prop> 
                      
          <prop key="dispatch*">PROPAGATION_REQUIRED </prop> 
                      
          <prop key="receive*">PROPAGATION_REQUIRED </prop> 
                      
          <prop key="revert*">PROPAGATION_REQUIRED </prop> 
                      
          <prop key="*create">PROPAGATION_REQUIRED,-Exception </prop> 
                  
          </props> 
              
          </property> 
              
          </bean> 

          <!-- /采價任務執行情況    事務在service層/ --> 
          <bean id="pcExecuteTaskService" parent="hibernateTransactionProxy"> 
          <property name="target"> 
          <bean class="com.zdvictory.wjj.pricegather.service.PcExecuteTaskServiceImpl"> 
          <property name="pcExecuteTaskDao"> <ref bean="pcExecuteTaskDao" /> </property> 
          <property name="pcTaskInfoDao"> <ref bean="pcTaskInfoDao" /> </property> 
          <property name="pcCollectionPlaceDao"> <ref bean="pcCollectionPlaceDao" /> </property> 
          <property name="pcMerchandiseInfoDao"> <ref bean="pcMerchandiseInfoDao" /> </property> 
          <property name="pcParticularTargetDao"> <ref bean="pcParticularTargetDao" /> </property> 
          <property name="pcColParticularinfoDao"> <ref bean="pcColParticularinfoDao" /> </property> 
          <property name="priceGuideLineDao"> <ref bean="priceGuideLineDao"/> </property> 
          <property name="pcMerchandIsClassDao"> <ref bean="pcMerchandIsClassDao"/> </property> 
          <property name="logsDao"> <ref bean="logsDao"/> </property> 
          </bean> 
          </property> 
          </bean> 
          主站蜘蛛池模板: 绥江县| 扬州市| 巴南区| 和田县| 拜城县| 玉溪市| 焦作市| 基隆市| 莒南县| 南澳县| 焉耆| 洪雅县| 互助| 泉州市| 丰都县| 遵义县| 青神县| 新丰县| 界首市| 日照市| 北宁市| 邢台县| 赤水市| 安义县| 吕梁市| 凭祥市| 江西省| 开远市| 广德县| 萨迦县| 浦城县| 万宁市| 高邑县| 中方县| 通渭县| 磐石市| 定安县| 天峻县| 桃园市| 社会| 集贤县|