Jakarta Persistence (JPA) Method

Cache getCache()


Access the cache that is associated with the entity manager factory (the "second level cache").
Returns:
an instance of Cache, or null if there is no second-level cache in use.
Throws:
IllegalStateException - if the entity manager factory has been closed.
Since:
Jakarta Persistence (JPA) 2.0