|
Possible QuickFix? [message #800673 is a reply to message #658647] |
Fri, 17 February 2012 10:42 |
Bernhard Anzeletti Messages: 17 Registered: July 2011 Location: Austria |
Junior Member |
|
|
Hi,
I've encountered a similar problem and could temporarily fix it by manually changing the fetch attribute of the relations from "LAZY" to "EAGER" (in the generated ORM.xml). Unfortunatly, this does not solve the problem, because I still want some relations to be fetched lazily. But it may help a little.
Kind regards
Bernhard
BTW, the full extend of this problem seems to me that as long as I stay within the same entity manager, everything works as expected, even when relations get fetched lazily. As soon as I inject the EntityManager into a SFSB which itself gets injected into a CDI bean with conversation scope, thigs get messy when I initilize the SECOND conversation with a NEW SFSB with a NEW EntityManager. However, as long as the CDI bean is SessionScoped, I do not face this problem. Strange indeed...
|
|
|
|
Powered by
FUDForum. Page generated in 0.02833 seconds