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
Not really sure but you may have issues with chosen inheritance strategy, see: - http://forums.terracotta.org/forums/posts/list/4849.page - http://forums.terracotta.org/forums/posts/list/15/4849.page - https://forum.hibernate.org/viewtopic.php?f=1&t=937742
Regards Philippe