Scope/usage of @Cache and @Cacheable in JPA entity hierarchies in Hibernate / EAP

Solution Verified - Updated -

Issue

  • Can cache settings differ between entities in the same inheritance hierarchy?
  • Can different @Cache / @Cacheable settings be used within the same inheritance hierarchy?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7
  • Hibernate
    • 4
    • 5
  • Infinispan

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.