Hibernate second level cache (TreeCache) - For sub entities

642 Views Asked by At

I am using TreeCache as my hibernate second level entity cache. I have an entity hierarchy which contains Customers and Partners both extend from Users. Can I cache Partner only ? I can cache Users then both customers and parers getting cached as well. But I want to cache a selected sub type. I am using a single table per class hierarchy strategy to store data .(single table with discriminator column). Appreciate your help.

Thanks

Regards,

Era

1

There are 1 best solutions below

1
On