我有一堂课
@Entity
public class MyClass extends BaseClass {
...
public boolean isOpenAt(Date x) {
return true; // or whatever
}
}
@MappedSuperclass
@Access(AccessType.Field)
public abstract class BaseClass {
...
}
运行mvn datanucleus:enhance
我得到错误org.datanucleus.metadata.InvalidClassMetaDataException: "MyClass.openAt" : declared in MetaData, but this field doesnt exist in the class!
知道为什么吗?
我正在使用 org.datanucleus:datanucleus-core:3.2.7, org.datanucleus:datanucleus-accessplatform-jpa-rdbms:3.3.2, org.eclipse.persistence:javax.persistence:2.1.0, org.datanucleus: datanucleus-maven-plugin:3.3.0-release。