Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.0.3
Assignee:
Reporter: William Drai
Created: Wed, 15 Oct 2003 6:20 PM
Updated: Wed, 15 Oct 2003 6:20 PM
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
|