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