Issue Type: Bug Bug
Affects Versions: 4.1.3
Assignee: Unassigned
Attachments: test.zip
Components: core
Created: 08/Jun/12 8:49 AM
Description:

Once you have called session.clear() loading an entity by the natural ID fails with a NPE

Caused by: java.lang.NullPointerException
at org.hibernate.internal.SessionImpl$BaseNaturalIdLoadAccessImpl.performAnyNeededCrossReferenceSynchronizations(SessionImpl.java:2509)
at org.hibernate.internal.SessionImpl$BaseNaturalIdLoadAccessImpl.resolveNaturalId(SessionImpl.java:2476)
at org.hibernate.internal.SessionImpl$NaturalIdLoadAccessImpl.load(SessionImpl.java:2582)

because the PersistenceContext is completely empty

Project: Hibernate ORM
Priority: Major Major
Reporter: Emanuel Kupcik
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