add javadoc cross links b/w byMultipleIds and findAll

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-04-15 16:58:29 +02:00
parent 526e282c4c
commit 362da7ebf1
2 changed files with 9 additions and 2 deletions

View File

@ -700,6 +700,9 @@ public interface Session extends SharedSessionContract, EntityManager {
* <p>
* Every object returned by {@code findAll()} is either an unproxied instance of the given
* entity class, or a fully-fetched proxy object.
* <p>
* 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)
*/
<E> List<E> findAll(Class<E> 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...)
*/
<T> MultiIdentifierLoadAccess<T> byMultipleIds(Class<T> entityClass);

View File

@ -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
*/
<T> List<T> getAll(Class<T> entityClass, Object... ids);