84 words

Persistent.persistenceModifier - JDO annotation element

Annotation Element
javax.jdo.annotations.Persistent
PersistenceModifier persistenceModifier

Modifier for this field. This is normally not specified, and the defaults are used, or the @Transactional or @NotPersistent annotation is specified directly on the member. One possible use for specifying persistenceModifier is for embedded instances in which a member is not persistent but in the non-embedded instances the member is persistent. Note that it is not portable to specify a member to be not persistent in the non-embedded case and persistent in the embedded usage.
Returns:
the persistence modifier
Default value:
javax.jdo.annotations.PersistenceModifier.UNSPECIFIED
Since:
JDO 2.1

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.