Annotation Type PersistenceCapable


@Target(TYPE) @Retention(RUNTIME) public @interface PersistenceCapable
Annotation for whether the class or interface is persistence-capable.
Since:
2.1
Version:
2.1
  • Element Details

    • members

      Persistent[] members
      Member 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 table
      Table to use for persisting this class or interface.
      Default:
      ""
    • catalog

      String catalog
      Catalog to use for persisting this class or interface.
      Default:
      ""
    • schema

      String schema
      Schema to use for persisting this class or interface.
      Default:
      ""
    • requiresExtent

      String requiresExtent
      Whether this class or interface manages an extent.
      Default:
      ""
    • embeddedOnly

      String embeddedOnly
      Whether objects of this class or interface can only be embedded.
      Default:
      ""
    • detachable

      String detachable
      Whether this class or interface is detachable.
      Default:
      ""
    • identityType

      IdentityType identityType
      Type of identity for this class or interface.
      Default:
      UNSPECIFIED
    • objectIdClass

      Class objectIdClass
      Primary key class when using application identity and using own PK.
      Default:
      void.class
    • cacheable

      String cacheable
      Whether this class is cacheable in a Level2 cache.
      Since:
      2.2
      Default:
      "true"
    • extensions

      Extension[] extensions
      Any vendor extensions.
      Default:
      {}