Skip to content

Commit

Permalink
add javadoc cross links b/w byMultipleIds and findAll
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin King <gavin@hibernate.org>
  • Loading branch information
gavinking committed Apr 15, 2024
1 parent fb9f1af commit ff43020
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hibernate-core/src/main/java/org/hibernate/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,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
Expand All @@ -987,6 +990,8 @@ public interface Session extends SharedSessionContract, EntityManager {
* entities
*
* @since 6.5
*
* @see #byMultipleIds(Class)
*/
<E> List<E> findAll(Class<E> entityType, Object... ids);

Expand Down Expand Up @@ -1198,6 +1203,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);

Expand Down

0 comments on commit ff43020

Please sign in to comment.