From 362da7ebf135ff1afe4c9d97ea1b7872ca584178 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Mon, 15 Apr 2024 16:58:29 +0200 Subject: [PATCH] add javadoc cross links b/w byMultipleIds and findAll Signed-off-by: Gavin King --- hibernate-core/src/main/java/org/hibernate/Session.java | 9 ++++++++- .../src/main/java/org/hibernate/StatelessSession.java | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/Session.java b/hibernate-core/src/main/java/org/hibernate/Session.java index a2f8b01a45..be44a0e8f4 100644 --- a/hibernate-core/src/main/java/org/hibernate/Session.java +++ b/hibernate-core/src/main/java/org/hibernate/Session.java @@ -700,6 +700,9 @@ public interface Session extends SharedSessionContract, EntityManager { *

* Every object returned by {@code findAll()} is either an unproxied instance of the given * entity class, or a fully-fetched proxy object. + *

+ * For more advanced cases, use {@link #byMultipleIds(Class)}, which returns an instance of + * {@link MultiIdentifierLoadAccess}. * * @param entityType the entity type * @param ids the identifiers @@ -707,7 +710,9 @@ public interface Session extends SharedSessionContract, EntityManager { * @return an ordered list of persistent instances, with null elements representing missing * entities * - * @since 6.5 + * @since 7.0 + * + * @see #byMultipleIds(Class) */ List findAll(Class entityType, Object... ids); @@ -919,6 +924,8 @@ public interface Session extends SharedSessionContract, EntityManager { * @return an instance of {@link MultiIdentifierLoadAccess} for executing the lookup * * @throws HibernateException If the given class does not resolve as a mapped entity + * + * @see #findAll(Class, Object...) */ MultiIdentifierLoadAccess byMultipleIds(Class entityClass); diff --git a/hibernate-core/src/main/java/org/hibernate/StatelessSession.java b/hibernate-core/src/main/java/org/hibernate/StatelessSession.java index e21873d37c..28f35738db 100644 --- a/hibernate-core/src/main/java/org/hibernate/StatelessSession.java +++ b/hibernate-core/src/main/java/org/hibernate/StatelessSession.java @@ -265,7 +265,7 @@ public interface StatelessSession extends SharedSessionContract { * @return an ordered list of detached entity instances, with * null elements representing missing entities * - * @since 6.5 + * @since 7.0 */ List getAll(Class entityClass, Object... ids);