-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Caching, dynamic-update and dynamic-insert
PostPosted: Mon May 09, 2005 12:18 am 
Newbie

Joined: Sat Nov 22, 2003 11:49 am
Posts: 11
Location: Minneapolis, Minnesota
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.