StoredProcedureQuery instances should be closed by Hibernate ORM

Description

As reported by https://github.com/quarkusio/quarkus/issues/13273

(See the same link for a reproducer)

Not critical as it's not actually leaking because of safeguards in the connection pools (and likely more safeguards in the JDBC drivers), but we should do the right thing - not least, it produces annoying warnings.

Environment

None

Assignee

Unassigned

Reporter

Sanne Grinovero

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure