In EclipseLink 2.5.2, how can I obtain the instance of the org.eclipse.persistence.sessions.Project
class that is associated with my existing PersistenceUnit
/ EntityManagerFactory
so that I can call setDefaultQueryResultsCachePolicy
?
Thanks.
You can get it from
Session
, and you can getSession
fromEntityManager
.