| Radim Vansa The question is more about what we worked out in the new SPI in regards to what exactly will be put in the cache... E.g. given a hierarchy such as:
@Entity
@Cacheable
class LegalEntity { ... }
@Entity
class Person { ... }
@Entity
class Corporation { ... }
Hibernate would report to you (via that org.hibernate.cache.cfg.spi.DomainDataRegionConfig contract) that all 3 are cached entities. Meaning DomainDataRegionConfig#getEntityCaching would report all 3 in the List. If you are fine with that, no problem. |