On some discussions of caching (I am using EHCache), I see dynamic-update="false" and dynamic-insert="false" set as the attributes for a hibernate class mapping.
Are these two attributes required for caching to work properly? I have not seen this explained anywhere, at least not yet.
I have a secod question. I have a Lookup table, SomeLookup. Within SomeLookup, I have all the static instances in the class, like so:
class SomeLookup extends Persistable {
public static final SomeLookup LOOKUP_A = new SomeLookup("A");
public static final SomeLookup LOOKUP_A = new SomeLookup("B");
public static final SomeLookup LOOKUP_A = new SomeLookup("C");
...
}
Some how, some way, I fully init all the instantiated SomeLookups with values from the database.
My second question is read-only caching SomeLookup really necessary, or helpful?
|