Hi,
I have a question about caching objects that I need some help.
Lets suppose I have a table called Country and read-only objects
mapped to this table. As they are very unlikely to change, I'd like to
cache them somewhere instead of going to the DB everytime I need to use
(display, associate, etc) them. A static Map name->object will do it.
The problem is that every context has its own cache that keeps its own
copies of objects. So the question is, can I load and store all Country
objects using Context A and then assign one of them to an Address object
on Context B? BTW, does the cache use equality and identity?
In this case, it is not a problem if loading the Address from the DB
on Context C creates another copy, different than the one in the cache,
because they are all read-only.
Any help is very much appreciated,
-- Fabricio Voznika Senior Programmer/Analyst Administrative Computing Dartmouth College Phone: 603-646-2007
This archive was generated by hypermail 2.0.0 : Thu Jul 10 2003 - 12:49:15 EDT