[jboss-user] [JBoss Seam] - Re: Seam-Managed Persistence Context

christian.bauer@jboss.com do-not-reply at jboss.com
Fri Jan 12 04:18:09 EST 2007


Scoping means defining a Begin and an End of the persistence context, when it is opened and when it is closed. Seam has the @Begin and @End method annotations for that, which can automatically scope the SMPC to that conversation. So the SMPC would have the same scope as the Seam CONVERSATION context. A PC manages entity instances, they are attached to a PC (when they are loaded or stored).

Eager fetching is an orthogonal concern, you want it for a) SQL query optimization with joins and b) fetching of instances/values that you need outside of the PC scope, when an entity instance is considered detached.

I don't recommend that you try to learn this ad hoc, you really need to look at some docs and books. This is the fundamental programming model you need to understand.



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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000797



More information about the jboss-user mailing list