Hi!

I already figured out what went wrong. The behavior with the proxy-class is 
right, i misunderstood some thing.

The stateful session bean gets it's EntityManager (= variable em) injected. 
While i've been working within the method getProject() (with the instanceof 
operator) i'm "walking" inside the persistence context. Inside the persistence 
context there are proxy-objects. 

Well, outside the persistence context the object has the right instance and i 
can work with it as desired. I had the impression the inheritance hierarchy was 
not eager fetched due to that.

Fortunately, everything's fine now... 

kind regards
Patrik


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104994#4104994

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104994
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to