Zbyněk Roubalík edited a comment on Bug HHH-7861

If I understand it correctly, LoadType.GET is set for EntityManager.find() and Session.get(), this type has allowNulls property set to true, which means this operation can return null. I've just found the same !options.isAllowNulls() test in lower level in DefaultLoadEventListener.load()

I think, it is not necessary to throw an exception and catch it again, if we could avoid it

This is my understanding from the code, maybe I'm wrong.

If session.get() shouldn't throw EntityNotFoundException then JPAProxyTest.testGetSemantics() is wrong, am I right?

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