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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content