Frage

If I annotate a mapped superclass with @cachable(false), like so...

@MappedSuperclass
@Cacheable(false)
public abstract class MySuperclass {
   ...
}

... will all subclass entities be non-cacheable by default?

I guess what I'm more generally asking is: do entities inherit annotations from super classes?

War es hilfreich?

Lösung

Yes, the @Cacheable setting is inherited by the subclasses and can be overridden by them.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top