Annotation Type Value


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface Value
    Annotation for the value of a map relation. Corresponds to the xml element "value".
    Since:
    2.1
    Version:
    2.1
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String column
      Name of the column to store the value in.
      Column[] columns
      The column(s) for the value.
      ForeignKeyAction deleteAction
      Delete action to apply to any foreign key for the value.
      java.lang.String dependent
      Whether the value is dependent on the owner (and will be deleted when the owner is deleted).
      java.lang.String embedded
      Whether this value is embedded.
      Embedded[] embeddedMapping
      The embedded mapping for the value.
      Extension[] extensions
      Vendor extensions.
      java.lang.String foreignKey
      Name for a generated foreign key constraint.
      java.lang.String generateForeignKey
      Generate or assume a foreign key constraint exists on the column or columns associated with this join.
      java.lang.String index
      The name of the index to generate.
      java.lang.String indexed
      Whether the value column(s) should be indexed.
      java.lang.String mappedBy
      Name of a member in the key class where this value is stored.
      java.lang.String serialized
      Whether the value is to be stored serialized (into a single column of a join table).
      java.lang.String table
      Name of the table for the value.
      java.lang.Class[] types
      Types of the values.
      java.lang.String unique
      Whether the element column(s) contents should be considered unique
      java.lang.String uniqueKey
      The name of the unique key constraint to generate.
      ForeignKeyAction updateAction
      Update action to apply to any foreign key for the value.
    • Element Detail

      • types

        java.lang.Class[] types
        Types of the values. This can be determined if using JDK1.5 generics but is required otherwise. Multiple types can be specified if the implementation supports multiple types.
        Returns:
        the types of values
        Default:
        {}
      • serialized

        java.lang.String serialized
        Whether the value is to be stored serialized (into a single column of a join table).
        Returns:
        Whether the value is to be stored serialized (into a join table)
        Default:
        ""
      • embedded

        java.lang.String embedded
        Whether this value is embedded.
        Returns:
        whether this value is embedded
        Default:
        ""
      • embeddedMapping

        Embedded[] embeddedMapping
        The embedded mapping for the value.
        Returns:
        the embedded mapping for the value
        Default:
        {}
      • dependent

        java.lang.String dependent
        Whether the value is dependent on the owner (and will be deleted when the owner is deleted).
        Returns:
        whether the value is dependent on the owner
        Default:
        ""
      • table

        java.lang.String table
        Name of the table for the value.
        Returns:
        the name of the table for the value
        Default:
        ""
      • column

        java.lang.String column
        Name of the column to store the value in.
        Returns:
        the name of the column to store the value in
        Default:
        ""
      • deleteAction

        ForeignKeyAction deleteAction
        Delete action to apply to any foreign key for the value.
        Returns:
        delete action to apply to any foreign key for the value
        Default:
        javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
      • updateAction

        ForeignKeyAction updateAction
        Update action to apply to any foreign key for the value.
        Returns:
        update action to apply to any foreign key for the value
        Default:
        javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED
      • indexed

        java.lang.String indexed
        Whether the value column(s) should be indexed.
        Returns:
        whether the value column(s) should be indexed.
        Default:
        ""
      • index

        java.lang.String index
        The name of the index to generate.
        Returns:
        the name of the index
        Default:
        ""
      • unique

        java.lang.String unique
        Whether the element column(s) contents should be considered unique
        Returns:
        whether the element column(s) contents should be considered unique
        Default:
        ""
      • uniqueKey

        java.lang.String uniqueKey
        The name of the unique key constraint to generate.
        Returns:
        the name of the unique key constraint
        Default:
        ""
      • mappedBy

        java.lang.String mappedBy
        Name of a member in the key class where this value is stored.
        Returns:
        the name of a member in the key class where this value is stored
        Default:
        ""
      • columns

        Column[] columns
        The column(s) for the value.
        Returns:
        the column(s) for the value
        Default:
        {}
      • generateForeignKey

        java.lang.String generateForeignKey
        Generate or assume a foreign key constraint exists on the column or columns associated with this join. Specify "true" or "false".
        Returns:
        whether to generate or assume a foreign key constraint
        Default:
        ""
      • foreignKey

        java.lang.String foreignKey
        Name for a generated foreign key constraint.
        Returns:
        the name of the generated foreign key constraint
        Default:
        ""
      • extensions

        Extension[] extensions
        Vendor extensions.
        Returns:
        the vendor extensions
        Default:
        {}