You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When EntityManagerFactory is created with org.springframework.orm.hibernate5.LocalSessionFactoryBean,
and EntityManager is created with org.springframework.orm.jpa.SharedEntityManagerCreator.createSharedEntityManager,
and HibernateJpaParametersParameterAccessor constructor is invoked out of transaction
then java.lang.IllegalStateException is thrown with message "No transactional EntityManager available"
However, when constructor is invoked inside transaction, no exception is thrown.
Suggested patch that fixes this issue is attached. patch.diff.txt
The text was updated successfully, but these errors were encountered:
When EntityManagerFactory is created with org.springframework.orm.hibernate5.LocalSessionFactoryBean,
and EntityManager is created with org.springframework.orm.jpa.SharedEntityManagerCreator.createSharedEntityManager,
and HibernateJpaParametersParameterAccessor constructor is invoked out of transaction
then java.lang.IllegalStateException is thrown with message "No transactional EntityManager available"
However, when constructor is invoked inside transaction, no exception is thrown.
Suggested patch that fixes this issue is attached.
patch.diff.txt
The text was updated successfully, but these errors were encountered: