如果我用 @cachable(false)
注释映射的父类(super class),就像这样......
@MappedSuperclass
@Cacheable(false)
public abstract class MySuperclass {
...
}
...默认情况下所有子类实体都是不可缓存的吗?
我想我更普遍的问题是:实体是否从父类(super class)继承注释?
最佳答案
是的,@Cacheable
设置为 inherited by the subclasses并且可以被它们覆盖。
关于java - eclipselink JPA : combining @MappedSuperclass with @Cacheable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22938677/