Scott Marlow closed Bug HHH-7861 as Fixed

EntityManager.find() will no longer throw an EntityNotFoundException (null is returned instead).

If debug logging is enabled, the below message is logged with the EntityNotFoundException:

@Message( value = "Returning null (as required by JPA spec) rather than throwing EntityNotFoundException, as the entity (%s) does not exist", id = 15013 )

Fix merged to https://github.com/hibernate/hibernate-orm/tree/4.1-perf, https://github.com/hibernate/hibernate-orm/tree/4.1 + master.

Change By: Scott Marlow (23/Jan/13 1:40 PM)
Resolution: Fixed
Status: Open Closed
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