| Author |
Solution to "Illegal attempt to associate a collection with two open sessions"
|
Rafael Gabriel
Greenhorn
Joined: Nov 22, 2012
Posts: 1
|
|
Hello everybody!
I need a solution to my problem without affecting my whole application.
I'm getting the error "Illegal attempt to associate a collection with two open sessions" and I can not solve.
My DAO:
My HibernateUtil:
My code getting error:
Error is in "clienteDao.deleteC(cliente)...
I can not close the session "getClienteById" because my fields LAZY not work.
What can I do?
Thanks!
My entity:
Full error:
|
 |
 |
|
|
subject: Solution to "Illegal attempt to associate a collection with two open sessions"
|
|
|