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.  [ 2 posts ] 
Author Message
 Post subject: Is it possible to cache entities that use joined tables?
PostPosted: Fri Oct 30, 2009 3:21 am 
Newbie

Joined: Fri Oct 30, 2009 3:12 am
Posts: 2
Hi,

I'm using ehcache (1.6.) as second level cache for hibernate (3.2.6). Some entities of my application are cached correctly, but some types are not cached at all. All uncached types share the pattern that they have a super-class that is annotated with @Inheritance(strategy = InheritanceType.JOINED). For instance:

Code:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class AbstractLabItem ....


The actual types I would like to cache look like this:

Code:
@Entity
@Indexed
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Worm extends AbstractLabItem {....


Is it possible to configure ehcache to cache also such types? Or are there any reasons that prevent hibernate/ehcache to cache them? My first guest is, that it may be harder to invalidate the cache as not just one table is being involved, but maybe I'm just missing a tiny bit of necessary configuration.

Any help is appreciated,
best, Holger


Top
 Profile  
 
 Post subject: Re: Is it possible to cache entities that use joined tables?
PostPosted: Mon Nov 02, 2009 9:56 am 
Newbie

Joined: Fri Oct 30, 2009 3:12 am
Posts: 2
Does nobody have any idea about this issue?

Any help is highly appreciated. :-)

Best, Holger


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.