Re: [hibernate-dev] Second-level cache and Inheritance

2016-07-18 Thread Sanne Grinovero
Hi Vlad, I think that might be quite tricky to implement, as it might not always be clear into which region we'd need to lookup from, or invalidate, not least locks might need to cross multiple regions. Think for example when a type A is removed with ID=1, and then a type B with the same ID is bei

[hibernate-dev] Second-level cache and Inheritance

2016-07-18 Thread Vlad Mihalcea
Hi, I bumped into this question on our forum: https://forum.hibernate.org/viewtopic.php?f=1&t=1043470 And after I tried an example using the latest Hibernate version I see that, for inheritance, all subentities share the parent region name. This can be found in org.hibernate.internal.CacheImpl