Brett Meyer commented on Bug HHH-7910

All, please see https://github.com/hibernate/hibernate-orm/pull/476/files. I'm currently clearing, then throwing a SessionException for both the entry and exit points. I added the exit check to a handful of methods. I'm sure there's more that need it, but would appreciate a second set of eyes.

(06:29:18 PM) smarlow: in the entry point, if we could check if the jta transaction is the same, then clearing the session & throwing an early error, otherwise, only clearing the session, would also work I think
(06:30:04 PM) smarlow: that would prevent an unexpected error from being thrown in the case that the entitymanager/session is used later after the tx ends

Thoughts about that? Makes sense, I believe.

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