-->
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.  [ 5 posts ] 
Author Message
 Post subject: Using EHCache with collections of an object
PostPosted: Sat Dec 06, 2003 5:43 pm 
Beginner
Beginner

Joined: Sat Dec 06, 2003 5:38 pm
Posts: 27
Hi all,

ehCache seems really good, I am seeing some great performances improvements. So far I have only used it for discrete objects. However, if I have objects Foo and Bar, and they each have a cache defined in ehcache.xml, and Foo has a collection of Bar's, do I also need to have the cache foo.bars defined as well?

I assume yes, becasue we will still need to either hit the database to know which Bar's belong in Foo.getBars() set. But maybe not? I guess I am worried that if multiple objects are related to each other through many to many objects etc, I will have huge numbers of sets to map as well...

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 06, 2003 8:19 pm 
Newbie

Joined: Tue Nov 25, 2003 5:05 pm
Posts: 18
It's a bug:
http://forum.hibernate.org/viewtopic.php?t=926067

ciao
Sven


Top
 Profile  
 
 Post subject: Is it fixed?
PostPosted: Sun Dec 07, 2003 1:03 pm 
Beginner
Beginner

Joined: Sat Dec 06, 2003 5:38 pm
Posts: 27
Okay, so since my ehCache came with the rc1 of hibernate, I should download the source and build it my self.. Do you know if the bug has been fixed?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 1:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
it is fixed


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 5:19 am 
Beginner
Beginner

Joined: Sat Dec 06, 2003 5:38 pm
Posts: 27
Thanks, I'll download it and build my self a copy.. Caching has really helped the performance of my app!


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

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.