[hibernate-issues] [Hibernate-JIRA] Created: (EJB-400) Allow specification of CacheMode on EntityManager creation

Chris Bredesen (JIRA) noreply at atlassian.com
Thu Nov 6 11:55:05 EST 2008


Allow specification of CacheMode on EntityManager creation
----------------------------------------------------------

                 Key: EJB-400
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-400
             Project: Hibernate Entity Manager
          Issue Type: Improvement
          Components: Documentation, EntityManager
            Reporter: Chris Bredesen
            Assignee: Chris Bredesen
            Priority: Minor


Hibernate core allows specification of CacheMode at the Session level.  In order to use this feature from JPA, it's necessary to modify the underlying Session using em.getDelegate().  This can be achieved in a more generic way by passing a property like "org.hibernate.cacheMode" to createEntityManagerFactory(Map).  This should also be usable from @PersistenceContext.

-- 
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