Skip to content

Commit 362da7e

Browse files
committed
add javadoc cross links b/w byMultipleIds and findAll
Signed-off-by: Gavin King <gavin@hibernate.org>
1 parent 526e282 commit 362da7e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

hibernate-core/src/main/java/org/hibernate/Session.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,14 +700,19 @@ public interface Session extends SharedSessionContract, EntityManager {
700700
* <p>
701701
* Every object returned by {@code findAll()} is either an unproxied instance of the given
702702
* entity class, or a fully-fetched proxy object.
703+
* <p>
704+
* For more advanced cases, use {@link #byMultipleIds(Class)}, which returns an instance of
705+
* {@link MultiIdentifierLoadAccess}.
703706
*
704707
* @param entityType the entity type
705708
* @param ids the identifiers
706709
*
707710
* @return an ordered list of persistent instances, with null elements representing missing
708711
* entities
709712
*
710-
* @since 6.5
713+
* @since 7.0
714+
*
715+
* @see #byMultipleIds(Class)
711716
*/
712717
<E> List<E> findAll(Class<E> entityType, Object... ids);
713718

@@ -919,6 +924,8 @@ public interface Session extends SharedSessionContract, EntityManager {
919924
* @return an instance of {@link MultiIdentifierLoadAccess} for executing the lookup
920925
*
921926
* @throws HibernateException If the given class does not resolve as a mapped entity
927+
*
928+
* @see #findAll(Class, Object...)
922929
*/
923930
<T> MultiIdentifierLoadAccess<T> byMultipleIds(Class<T> entityClass);
924931

hibernate-core/src/main/java/org/hibernate/StatelessSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public interface StatelessSession extends SharedSessionContract {
265265
* @return an ordered list of detached entity instances, with
266266
* null elements representing missing entities
267267
*
268-
* @since 6.5
268+
* @since 7.0
269269
*/
270270
<T> List<T> getAll(Class<T> entityClass, Object... ids);
271271

0 commit comments

Comments
 (0)