Skip to content

Hibernate Query.list() is not included in SharedEntityManagerCreator's queryTerminatingMethods set, causing DB connection not to be released when query is proxied #23248

@wcandml

Description

@wcandml

The queryTerminatingMethods of the SharedEntityManagerCreator class does not contain the "list" method:

image-2019-07-06-14-41-13-148

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

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

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions