Given a Base class
@Entity @Polymorphism(type = PolymorphismType.EXPLICIT) @Inheritance(strategy = InheritanceType.JOINED) public class BaseEntity { @Id @GeneratedValue public int id; }
and a Child
@Entity @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public class ChildEntity extends BaseEntity { }
I expect ChildEntity to be able to be cached now, but
2018-05-16 12:03:19 WARN EntityBinder:625 - HHH000482: @org.hibernate.annotations.Cache used on a non-root entity: ignored for null