Skip to content

Commit 3978d55

Browse files
committed
Query termination for JPA 2.1 StoredProcedureQuery.execute() method
Issue: SPR-16826 (cherry picked from commit 3c8c996)
1 parent 416dee7 commit 3978d55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,6 +78,7 @@ public abstract class SharedEntityManagerCreator {
7878
transactionRequiringMethods.add("remove");
7979
transactionRequiringMethods.add("refresh");
8080

81+
queryTerminatingMethods.add("execute"); // JPA 2.1 StoredProcedureQuery
8182
queryTerminatingMethods.add("executeUpdate");
8283
queryTerminatingMethods.add("getSingleResult");
8384
queryTerminatingMethods.add("getResultList");

0 commit comments

Comments
 (0)