Include all Hibernate query methods in SharedEntityManagerCreator
's queryTerminatingMethods
set
#29886
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Similar to the issue #23248
The
org.springframework.orm.jpa.SharedEntityManagerCreator.queryTerminatingMethods
does not contain the "uniqueResult" method:When the EntityManager is closed and
org.hibernate.query.Query.uniqueResult()
is used, as QueryImpl is delegated by DeferredQueryInvocationHandler, the database connection could not be released:Seems
uniqueResult
might not be used here, but add this could prevent this issue as it could not stop developers to useuniqueResult
.Would it be possitble to add
uniqueResult
?The text was updated successfully, but these errors were encountered: