Module org.eclipse.persistence.core
Annotation Interface BasicCollection
Deprecated.
Use ElementCollection.
A BasicCollection is used to map an 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.
Converters may be used if the desired object type and the data type do not match.
A BasicCollection can be specified on within an Entity, MappedSuperclass and Embeddable class.
- Since:
- Oracle TopLink 11.1.1.0.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.Deprecated.The name of the value column that holds the direct collection data.
-
Element Details
-
fetch
FetchType fetchDeprecated.Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The FetchType.EAGER strategy is a requirement on the persistence provider runtime that the value must be eagerly fetched. The FetchType.LAZY strategy is a hint to the persistence provider runtime.If not specified, defaults to FetchType.LAZY.
- Default:
LAZY
-
valueColumn
Column valueColumnDeprecated.The name of the value column that holds the direct collection data.Defaults to the property or field name.
- Default:
@jakarta.persistence.Column
-