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: EHCache and FindbyExample
PostPosted: Fri Jun 29, 2007 11:44 am 
Newbie

Joined: Fri Jun 29, 2007 11:34 am
Posts: 1
Have an object

class Foo {
Long id; (the id)
String name;
}

that i get from the DB. I get it from the db using findByExample where i set the name as the example criteria and then get back the object with the id field populated.

I need to cache this for a period of time for performance but i don't fully understand how caching will work with this. I would like to cache all the values using EHCache as i don't want to keep hitting the DB. Do i have to enable query caching for this to work as i retrieve the values from the query?
Thanks


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.