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