[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5863) EntityManagerFactory create EntityManger using current session

Dave (JIRA) noreply at atlassian.com
Sun Jan 23 07:52:05 EST 2011


EntityManagerFactory create EntityManger using current session
--------------------------------------------------------------

                 Key: HHH-5863
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5863
             Project: Hibernate Core
          Issue Type: Improvement
         Environment: ALL, Hibernate 3.6.0.FINAL
            Reporter: Dave


In our web application we have transactions like:

Begin transaction

call low level API that does the following
1. getEntityManagerFactory
2. EntityManagerFactory.createEntityManager
3. entity access through entityManager

do something ...
call low level API that does the following

1. getEntityManagerFactory
2. EntityManagerFactory.createEntityManager
3. entity access through entityManager

End transaction

Within transaction boundary, current session needs to be reused for all the entity access.
So an API like the following is needed.
EntityManagerFactory.createEntityManager(boolean useCurrentSession)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list