Joined: Fri Apr 29, 2005 5:29 am Posts: 6 Location: Avignon - FR
|
Hibernate 2.1.6
Ehcache config activated in hbm files
Progress 9.1E
Problem synopsis:
The appplication uses several databases while some of them use the same
structures (classes).
Saying Db1 with a class A - table t1
Db2 with a class A - table t1
With one row in db1 - t1 - key1 val1
db2 - t1 - key1 - val2
Using the cache:
first read in db1(key1) ==> val1 OK!!!
first read in db2(key1) ==> val1 KO!!!
Can't afford to duplicate the classes because all the code would be impacted
so I must find a way to get a cache with a more user friendly behaviour.
Does someone knows such product ?
In EHCache the domain concept just handles class names, I could change this behaviour to handle class names in a context?
Any help/pointers/ suggestions greatly appreciated
PS:
don't think that the physical database used is a matter of problem
the problem is strictly a cache one because deactivating it, the problem is gone!!
|
|