From d68eb4b7ebcfc43c5630a051bf78435951971ae4 Mon Sep 17 00:00:00 2001 From: Gavin Date: Fri, 25 Nov 2022 22:08:45 +0100 Subject: [PATCH] add @deprecated explanations --- .../org/hibernate/annotations/LazyCollectionOption.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/LazyCollectionOption.java b/hibernate-core/src/main/java/org/hibernate/annotations/LazyCollectionOption.java index 6e44a77670..e0639b2829 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/LazyCollectionOption.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/LazyCollectionOption.java @@ -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 }