This content has been marked as final.
Show 1 reply
-
1. Re: How to use different configurations for different set of
brian.stansberry Nov 16, 2009 2:16 PM (in response to ks_shailesh)Sorry, you can't specify a different cache config for different entities, unless they are associated wth different Hibernate SessionFactories. The configuration applies globally to the SessionFactory.
FYI for Hibernate 3.5 (currently at Beta 2) Galder Zamarreño's Second Level Cache integration with Infinispan includes the ability to use a different config for different entities. See http://www.jboss.org/community/docs/DOC-14105