Dedicated cache region for entity subclasses?

前端 未结 1 1163
说谎
说谎 2021-02-15 01:15

We have an extensive entity model with 100+ entity classes. All the entity classes are subclasses of a single entity superclasses. The shared cache mode has been set to

相关标签:
1条回答
  • 2021-02-15 01:50

    Hibernate caches the entire entity hierarchy in one region explicitly. There is no control over this. Its the only way to properly handled cached resolution of polymorphic lookups. Other providers (I think) do allow some control over where/how each subclass is cached (at least thats my guess based on the options provided by JPA).

    0 讨论(0)
提交回复
热议问题