문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top