|Re: entity.getAlist() reopen de emFactory and entityManager that was previously closed!! [message #528249 is a reply to message #528141]
||Mon, 19 April 2010 15:41
| No real name
Registered: April 2010
Thanks for the answer James!|
For detach I mean call the detach() method from entityManager.
I don't know if there are something holding the EntityManagerFactory but before close I call entityManager.clear() to detach all entities and after I test if the EntityManagerFactory is open:
and the return is false.
But even now my entity can load the lazy associations creating a new connection and doing the queries. This isn't a problem for me, but open a opportunity to the programmer work in an inappropriate way.
[Updated on: Mon, 19 April 2010 16:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01780 seconds