我直接使用注释掉的代码来进行级联删除就没问题(也是就在dao层用session的get方法把post查询出来)但是如果我先在action里把post给查询出来,再传到dao就会报上面这个错误illegally attempted to associate a proxy with two open Sessions,单独查询post的代码如下,请问这是哪儿出问题了???
...全文
6633打赏收藏
Hibernate报异常:illegally attempted to associate a proxy with two open Sessions
我直接使用注释掉的代码来进行级联删除就没问题(也是就在dao层用session的get方法把post查询出来)但是如果我先在action里把post给查询出来,再传到dao就会报上面这个错误illegally attempted to associate a proxy with two open Sessions,单独查询post的代码如下,请问这是哪儿出问题了???