Package org.hibernate.annotations
Annotation Type LazyCollection
-
@Deprecated(since="6.2") @Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface LazyCollection
Deprecated.- Use the JPA-defined
FetchType.EAGER
instead ofLazyCollection(FALSE)
. - Use static methods of
Hibernate
, for exampleHibernate.size(Collection)
,Hibernate.contains(Collection, Object)
, orHibernate.get(Map, Object)
instead ofLazyCollection(EXTRA)
.
Specify the laziness of a collection, either aOneToMany
orManyToMany
association, or anElementCollection
. This is an alternative to specifying the JPAFetchType
. This annotation is used to enable extra-lazy collection fetching. - Use the JPA-defined
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description LazyCollectionOption
value
Deprecated.The laziness of the collection.
-
-
-
Element Detail
-
value
LazyCollectionOption value
Deprecated.The laziness of the collection.- Default:
- org.hibernate.annotations.LazyCollectionOption.TRUE
-
-