pb00067 wrote:
You probably missed to open a transaction explicitly by calling
Code:
session.getTransaction().begin();
so all your updates were executed with autocommit (=single implicit transaction per jdbc-statement).
i want to let it works by auto transaction,i configed in application config file with
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="*"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut expression="execution(* com.test.TransAction.*(..))" id="txPointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut"/>
</aop:config>
but it not works