@@ -372,6 +372,45 @@ public interface StatelessSession extends SharedSessionContract {
372372 */
373373 <T > List <T > getMultiple (Class <T > entityClass , List <?> ids , LockMode lockMode );
374374
375+ /**
376+ * Retrieve multiple rows, returning instances of the root
377+ * entity of the given {@link EntityGraph} with the fetched
378+ * associations specified by the graph, in a list where the
379+ * position of an instance in the list matches the position
380+ * of its identifier in the given array, and the list
381+ * contains a null value if there is no persistent instance
382+ * matching a given identifier.
383+ *
384+ * @param entityGraph The {@link EntityGraph}, interpreted as a
385+ * {@linkplain org.hibernate.graph.GraphSemantic#LOAD load graph}
386+ * @param graphSemantic a {@link GraphSemantic} specifying
387+ * how the graph should be interpreted
388+ * @param ids The ids of the entities to retrieve
389+ * @return an ordered list of detached entity instances, with
390+ * null elements representing missing entities
391+ * @since 7.0
392+ */
393+ <T > List <T > getMultiple (EntityGraph <T > entityGraph , List <?> ids );
394+
395+ /**
396+ * Retrieve multiple rows, returning instances of the root
397+ * entity of the given {@link EntityGraph} with the fetched
398+ * associations specified by the graph, in a list where the
399+ * position of an instance in the list matches the position
400+ * of its identifier in the given array, and the list
401+ * contains a null value if there is no persistent instance
402+ * matching a given identifier.
403+ *
404+ * @param entityGraph The {@link EntityGraph}
405+ * @param graphSemantic a {@link GraphSemantic} specifying
406+ * how the graph should be interpreted
407+ * @param ids The ids of the entities to retrieve
408+ * @return an ordered list of detached entity instances, with
409+ * null elements representing missing entities
410+ * @since 7.0
411+ */
412+ <T > List <T > getMultiple (EntityGraph <T > entityGraph , GraphSemantic graphSemantic , List <?> ids );
413+
375414 /**
376415 * Refresh the entity instance state from the database.
377416 *
0 commit comments