查询的时候可以查出来。但是增删改的时候却没有反应。如果我自己在底层写一个方法,然后自己写SQL去执行就可以删除,但是调用hibernate底层的方法 this.getSession().delete(obj)这样的时候就没有反应。我用debug模式调试的时候 到 this.getSession().delete(obj); 执行完这句怎么show_sql会是select语句呢?
我在spring配置文件里面 这样配置应该没错吧
<tx:advice id="methodAdvice" transaction-manager="transactionManager" >
<tx:attributes>
<tx:method name="*login" read-only="true" />
<tx:method name="get*" read-only="true" />
<tx:method name="*"/>
</tx:attributes>
</tx:advice>