Open cursors aren't realeased

Hello everyone
Injection of entitymanager using @ Persistencecontext in spring ,for saving, extraction of data cursor is open in database even after returning from @Transactional method in-service class from where I am calling methods in dao layer like em.merge() calling em.close() after each database operations in a finally block open cursors are not released in database.Due to which I am facing maximum open cursors exceeded exception.
Thanks!

I have a similar problem but with lazy load of references and @Transactional.

Have you checked if you are affected too?

forum link

issue link: https://hibernate.atlassian.net/browse/HHH-13474