For anyone with the same issue as I had, I was calling a public method method1
from within another class.
method1
then called another public method method2
within the same class.
method2
was annotated with @Transactional
, but method1
was not.
All that method1
did was transform some arguments and directly call method2
, so no DB operations here.
The issue got solved for me once I moved the @Transactional
annotation to method1
.
Not sure the reason for this, but this did it for me.