Top Description Methods
org.hibernate.annotations

public @Interface LazyCollection

extends Annotation
Annotations
@Deprecated
since:6.2
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, java.util.Collection, .Map

Deprecated

since 6.2.

Specify the laziness of a collection, either a jakarta.persistence.OneToMany or jakarta.persistence.ManyToMany association, or an jakarta.persistence.ElementCollection. This is an alternative to specifying the JPA jakarta.persistence.FetchType. This annotation is used to enable extra-lazy collection fetching.
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public LazyCollectionOption
value()

Deprecated as a consequence of LazyCollectionOption being deprecated.
The laziness of the collection.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public LazyCollectionOption value()

Deprecated

as a consequence of LazyCollectionOption being deprecated. See corresponding docs for further information.

The laziness of the collection.