Sri Gudiseva edited a comment on Bug HHH-7537

Why is the exception thrown though I have only database query (not write) in the PostUpdateEventListern.onPostUpdate(). If I comment out the query to the database, its working fine.

One more observation - When I really did update the event.getEntity() object and called the save on dao, it didn't update the database if I don't call flush() after the save()

I think hibernate is treating read & write transactions reversely and flushing the contents accordingly.

I am using hibernate 4.1.8

Is there any quick solution to avoid this as we can't wait till the fix is made. Please help me.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira