From 87730f76b1ffc7bc3fd9258d06cfccb79b259d1a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sun, 26 Nov 2023 12:09:06 +0100 Subject: [PATCH] Include scroll() in SharedEntityManagerCreator's queryTerminatingMethods This commit supports the scroll() and scroll(ScrollMode) methods from Hibernate's Query API in SharedEntityManagerCreator's query-terminating methods set. See gh-31682 Closes gh-31683 (cherry picked from commit a15f472898ec4c3e79c30949981da9fe75148240) --- .../org/springframework/orm/jpa/SharedEntityManagerCreator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java b/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java index 911bbf3ba330..4e32abcd399a 100644 --- a/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java +++ b/spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java @@ -88,6 +88,7 @@ public abstract class SharedEntityManagerCreator { "getResultStream", // jakarta.persistence.Query.getResultStream() "getResultList", // jakarta.persistence.Query.getResultList() "list", // org.hibernate.query.Query.list() + "scroll", // org.hibernate.query.Query.scroll() "stream", // org.hibernate.query.Query.stream() "uniqueResult", // org.hibernate.query.Query.uniqueResult() "uniqueResultOptional" // org.hibernate.query.Query.uniqueResultOptional()