ssh 中,怎么实现hibernate拦截器配置
 请大家指教

解决方案 »

  1.   


    <bean id="interceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
        <property name="transactionManager" ref="transactionManager" />
        <property name="transactionAttributes">
          <props>
           <prop key="*">PROPAGATION_REQUIRED</prop>
           <!--<prop key="insert">ISOLATION_READ_COMMITTED,PROPAGATION_REQUIRED,timeout_8,-Exception</prop>
            <prop key="delete">ISOLATION_READ_COMMITTED,PROPAGATION_REQUIRED,timeout_8,-Exception</prop>
            <prop key="update">ISOLATION_READ_COMMITTED,PROPAGATION_REQUIRED,timeout_12,+RuntimeException</prop>
            <prop key="login">ISOLATION_READ_COMMITTED,PROPAGATION_REQUIRED,timeout_12,+RuntimeException</prop>  -->
            
          </props>
        </property>
      </bean>
    希望对你有....
      

  2.   


    ssh 中,怎么实现hibernate拦截器配置,我想实现对hibernate 执行的sql语言进行拦截,不知道怎么配置