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.
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