@NotPersistent (jdo)
The @javax.jdo.annotation.NotPersistent
annotation is used by JDO/DataNucleus to indicate that a property should not be persisted to the database.
Apache Causeway also uses this annotation, though (currently) only in the very minimal way to suppress checking of inconsistent metadata between JDO and Causeway annotations (eg @Column#allowsNull()
vs @Property#optionality()
, or @Column#length()
and @Property#maxLength()
).
The framework parses the Moreover, while JDO/DataNucleus will recognize annotations on either the field or the getter method, Apache Causeway (currently) only inspects the getter method. Therefore ensure that the annotation is placed there. |