Top Description Methods
org.eclipse.persistence.annotations

public @Interface BasicCollection

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
@Deprecated
Imports
java.lang.annotation.Retention, .Target, jakarta.persistence.Column, .FetchType

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.
Author
Guy Pelletier
Since
Oracle TopLink 11.1.1.0.0
See Also
Converters may be used if the desired object type and the data type do not match., org.eclipse.persistence.annotations.Convert, org.eclipse.persistence.annotations.Converter, org.eclipse.persistence.annotations.ObjectTypeConverter, A BasicCollection can be specified on within an Entity, MappedSuperclass and Embeddable class., jakarta.persistence.ElementCollection

Method Summary

Modifier and TypeMethod and Description
public FetchType
fetch()

(Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.

public Column
valueColumn()

(Optional) The name of the value column that holds the direct collection data.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

fetchback to summary
public FetchType fetch()

(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.

valueColumnback to summary
public Column valueColumn()

(Optional) The name of the value column that holds the direct collection data. Defaults to the property or field name.