Micronaut 4 JPA question: No session currently bound to execution context #2844
-
I have a micronaut 3 application and trying to migrate to micronaut 4 (io.micronaut.platform:micronaut-platform 4.3.5, io.micronaut:micronaut-core-bom 4.3.5) In application.yml:
The Dao class:
From Unit test, the call will get to Controller then DaoImpl.craate Caused by: org.hibernate.HibernateException: No session currently bound to execution context I tried many combination but cannot get it working. Can someone share some insights how to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
perhaps remove |
Beta Was this translation helpful? Give feedback.
try set
current_session_context_class: io.micronaut.transaction.hibernate.MicronautSessionContext