From: <leg...@at...> - 2003-12-13 16:41:33
|
The following comment has been added to this issue: Author: William Drai Created: Sat, 13 Dec 2003 10:40 AM Body: I just tried hibernate 2.1. It was indeed a JCS problem. It's really a benediction that you remove support for this crap. Now everything is perfect with all other cache providers. Thanks for your help. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-404 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-404 Summary: Caching problem with same class mapped in many sessionFactories Type: Bug Status: Closed Priority: Minor Resolution: WON'T FIX Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: William Drai Created: Wed, 15 Oct 2003 6:20 PM Updated: Sat, 13 Dec 2003 10:40 AM Description: I want to map the same class in two different sessionFactories using two different databases. As the cache region is defined only by the class name, the cache is not able to differentiate instances of the same class with the same id in different databases. I have made a patch for Hibernate 2.0.3 which just add a new parameter 'cache-region-prefix' in the session factory configuration and it works perfectly. As the caching system is completely being refactored, it would be really cool if this simple fix was included in the refactoring. Thanks. William --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |