Joined: Mon Sep 27, 2004 2:15 am Posts: 11 Location: Helsinki, Finland
|
We've got multiple SessionFactories due to having multiple databases; each db has the same schema so each SessionFactoy shares the same class mapping files. We enabled Ehcache for one of the factories by setting hibernate.cache.provider_class in the factory's configuration. Mysteriously, though, one of the SessionFactories that has not had cache enabled is nevertheless using that cache. I'm a bit confused now -- shouldn't each SessionFactory set up its own cache and keep it private and separate from all other sessionfactories? I guess not? We're using Hibernate 2.1.7c.
|
|