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.EAGERinstead ofLazyCollection(FALSE). - Use static methods of
Hibernate, for exampleHibernate.size(Collection),Hibernate.contains(Collection, Object),Hibernate.get(Map, Object), orHibernate.remove(Map, Object)instead ofLazyCollection(EXTRA).
Specify the laziness of a collection, either aOneToManyorManyToManyassociation, 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 LazyCollectionOptionvalueDeprecated.The laziness of the collection.
-
-
-
Element Detail
-
value
LazyCollectionOption value
Deprecated.The laziness of the collection.- Default:
- org.hibernate.annotations.LazyCollectionOption.TRUE
-
-