The org.hibernate.query.Query.list() method is not included in the org.springframework.orm.jpa.SharedEntityManagerCreator.queryTerminatingMethods collection, which causes the database connection to be unreleased when the query is proxied. [DATAJPA-1567] #1876
Labels
wcandml opened DATAJPA-1567 and commented
The queryTerminatingMethods of the SharedEntityManagerCreator class does not contain the "list" method:
!image-2019-07-06-14-41-13-148.png!
In the DeferredQueryInvocationHandler class, when the EntityManager is closed, it is determined whether the method name is in "queryTerminatingMethods":
!image-2019-07-06-14-43-21-734.png!
When org.hibernate.query.Query.list() is used, and QueryImpl and NativeQueryImpl are delegated by DeferredQueryInvocationHandler, the database connection is not released:
!image-2019-07-06-14-56-26-274.png!
Affects: 1.11.22 (Ingalls SR22)
Attachments:
The text was updated successfully, but these errors were encountered: