Skip to content

Commit

Permalink
Consider Hibernate Query.list() as query-terminating method
Browse files Browse the repository at this point in the history
Closes gh-23248
  • Loading branch information
jhoeller committed Jul 17, 2019
1 parent 74ddf1b commit 18bfa6b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -84,8 +84,9 @@ public abstract class SharedEntityManagerCreator {
queryTerminatingMethods.add("execute"); // JPA 2.1 StoredProcedureQuery
queryTerminatingMethods.add("executeUpdate");
queryTerminatingMethods.add("getSingleResult");
queryTerminatingMethods.add("getResultList");
queryTerminatingMethods.add("getResultStream");
queryTerminatingMethods.add("getResultList");
queryTerminatingMethods.add("list"); // Hibernate Query.list() method
}


Expand Down

0 comments on commit 18bfa6b

Please sign in to comment.