add @deprecated explanations

This commit is contained in:
Gavin 2022-11-25 22:08:45 +01:00
parent 70873f5d2f
commit d68eb4b7eb
1 changed files with 9 additions and 0 deletions

View File

@ -38,14 +38,20 @@ public enum LazyCollectionOption {
* the collection is still mediated by an instance of
* {@link org.hibernate.collection.spi.PersistentCollection},
* which tracks modifications to the collection.
*
* @deprecated use {@link jakarta.persistence.FetchType#EAGER}
*/
@Deprecated
FALSE,
/**
* The underlying Java collection is proxied by an instance of
* {@link org.hibernate.collection.spi.PersistentCollection}
* and lazily fetched when a method of the proxy is called.
* All elements of the collection are retrieved at once.
*
* @deprecated use {@link jakarta.persistence.FetchType#LAZY}
*/
@Deprecated
TRUE,
/**
* The underlying Java collection is proxied by an instance of
@ -54,6 +60,9 @@ public enum LazyCollectionOption {
* when methods of the proxy are called. When reasonable, the
* proxy will avoid fetching all elements of the collection
* at once.
*
* @deprecated use operations of {@link org.hibernate.Hibernate}
*/
@Deprecated
EXTRA
}