[jboss-user] [JBoss Seam] - Re: When we need an entity-manager-factory?
do-not-reply at jboss.com
Wed Dec 5 00:15:34 EST 2007
Typically you don't need it, persistence contexts are always provided for you.
However, if you wanted another persistence context, you can always get hold of the factory and create one. For example, if you had an entity, and you wanted to see what was in the database, you could use a second persistence context to view the currently persisted data.
You could also use it to query data if you wanted to get around the fact that changes to an entity pool are flushed when you run a query. Running the query on a second entity manager would sneak around that.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110419#4110419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110419
More information about the jboss-user