Persistent
Target: ElementType.FIELD, ElementType.METHOD
- Implemented Interfaces:
Annotation
Annotation for defining the persistence of a member. This corresponds to the xml elements "field" and "property".
- Since:
- JDO 2.1
Public Annotation Attributes
String cacheable default "true"
- Since:
- JDO 2.2
String column default ""
- Since:
- JDO 2.1
Used for mapping multiple columns to the same member, for example relationships with multiple column foreign keys.
- Since:
- JDO 2.1
String customValueStrategy default ""
If customValueStrategy is non-empty, then valueStrategy must be UNSPECIFIED.
- Since:
- JDO 2.1
String defaultFetchGroup default ""
- Since:
- JDO 2.1
String dependent default ""
- Since:
- JDO 2.1
String dependentElement default ""
- Since:
- JDO 2.1
String dependentKey default ""
- Since:
- JDO 2.1
String dependentValue default ""
- Since:
- JDO 2.1
String embedded default ""
- Since:
- JDO 2.1
String embeddedElement default ""
- Since:
- JDO 2.1
String embeddedKey default ""
- Since:
- JDO 2.1
String embeddedValue default ""
- Since:
- JDO 2.1
- Since:
- JDO 2.1
String loadFetchGroup default ""
- Since:
- JDO 2.1
String mappedBy default ""
- Since:
- JDO 2.1
String name default ""
The fully-qualified member name is used. For example, "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class Line that is embedded in a member called line.
- Since:
- JDO 2.1
String nullIndicatorColumn default ""
Used for nested embedded fields or properties to indicate whether the embedded instance should have a null value.
- Since:
- JDO 2.1
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.
- Since:
- JDO 2.1
String primaryKey default ""
This is equivalent to specifying @PrimaryKey as a separate annotation on the member.
- Since:
- JDO 2.1
int recursionDepth default 1
Used only when the annotation is used within the definition of a FetchGroup.
- Since:
- JDO 2.1
String sequence default ""
- Since:
- JDO 2.1
String serialized default ""
- Since:
- JDO 2.1
String serializedElement default ""
- Since:
- JDO 2.1
String serializedKey default ""
- Since:
- JDO 2.1
String serializedValue default ""
- Since:
- JDO 2.1
String table default ""
- Since:
- JDO 2.1
Class[] types default {}
Used when the declared member type is a supertype of the actual type that is stored in the member. For example, the declared member type might be an interface type that must contain an object of a concrete type when used for persistence.
- Since:
- JDO 2.1
- Since:
- JDO 2.1