Annotation Type BasicCollection


@Target({METHOD,FIELD}) @Retention(RUNTIME) @Deprecated public @interface BasicCollection
Deprecated.
A BasicCollection is used to map an org.eclipse.persistence.mappings.DirectCollectionMapping, which stores a collection of simple types (String, Number, Date, etc.). It is used in conjunction with a CollectionTable which stores the value and a foreign key to the source object.
See Also:
Author:
Guy Pelletier
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    jakarta.persistence.FetchType
    Deprecated.
    (Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.
    jakarta.persistence.Column
    Deprecated.
    (Optional) The name of the value column that holds the direct collection data.
  • Element Details

    • fetch

      jakarta.persistence.FetchType fetch
      Deprecated.
      (Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The EAGER strategy is a requirement on the persistence provider runtime that the value must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime. If not specified, defaults to LAZY.
      Default:
      LAZY
    • valueColumn

      jakarta.persistence.Column valueColumn
      Deprecated.
      (Optional) The name of the value column that holds the direct collection data. Defaults to the property or field name.
      Default:
      @jakarta.persistence.Column