Issue Type: Improvement Improvement
Affects Versions: 4.1.2
Assignee: Unassigned
Components: core
Created: 14/Sep/12 10:08 PM
Description:

When Hibernate encounters a FK without a matching row in the referenced table, it throws

javax.persistence.EntityNotFoundException: Unable to find EntityXY with id 0

It would be great if it also revealed that the situation occured when trying to load an entity mapped from another entity, and which one; so that poor users would not have to ponder where they are asking for EntityXY with id 0.

Environment: JBoss AS 7.1.2
Project: Hibernate ORM
Priority: Minor Minor
Reporter: Ondra Žižka
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