Package javax.jdo.annotations
Annotation Type PersistenceCapable
Annotation for whether the class or interface is persistence-capable.
- Since:
- 2.1
- Version:
- 2.1
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionWhether this class is cacheable in a Level2 cache.Catalog to use for persisting this class or interface.Whether this class or interface is detachable.Whether objects of this class or interface can only be embedded.Any vendor extensions.Type of identity for this class or interface.Member declarations.Primary key class when using application identity and using own PK.Whether this class or interface manages an extent.Schema to use for persisting this class or interface.Table to use for persisting this class or interface.
-
Element Details
-
members
Persistent[] membersMember declarations. Annotations for persistent members of this class or interface can be specifed either here or on each member. Annotations for inherited members can only be specified here.- Returns:
- member declarations
- Default:
{}
-
table
String tableTable to use for persisting this class or interface.- Default:
""
-
catalog
String catalogCatalog to use for persisting this class or interface.- Default:
""
-
schema
String schemaSchema to use for persisting this class or interface.- Default:
""
-
requiresExtent
String requiresExtentWhether this class or interface manages an extent.- Default:
""
-
embeddedOnly
String embeddedOnlyWhether objects of this class or interface can only be embedded.- Default:
""
-
detachable
String detachableWhether this class or interface is detachable.- Default:
""
-
identityType
IdentityType identityTypeType of identity for this class or interface.- Default:
UNSPECIFIED
-
objectIdClass
Class objectIdClassPrimary key class when using application identity and using own PK.- Default:
void.class
-
cacheable
String cacheableWhether this class is cacheable in a Level2 cache.- Since:
- 2.2
- Default:
"true"
-
extensions
Extension[] extensionsAny vendor extensions.- Default:
{}
-