Marco Janc commented on Improvement HHH-7235

This issue is not fixed. Using Hibernate 4.14 I try to persist a Entity with a null-able property of the natural-id and cannot look it up using natural:

NaturalIdLoadAccess#load()

Following exception is thrown:

org.hibernate.HibernateException: Null value(s) passed to lookup by non-nullable natural-id
at org.hibernate.persister.entity.AbstractEntityPersister.determinePkByNaturalIdQuery(AbstractEntityPersister.java:4642)
at org.hibernate.persister.entity.AbstractEntityPersister.loadEntityIdByNaturalId(AbstractEntityPersister.java:4575)

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