// check for existence
final NaturalIdLoadAccess nila = session.byNaturalId(Node.class);
nila.using("name", "test");
nila.using("parent", null);
Node node = (Node) nila.load(); // fires exception
if (node == null)
{
node = new Node();
node.setName("test");
session.save(pc);
}
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
Thanks for that quick reply:
I simplified my code to a working example that produces same error.
Log: INFO: HHH000412: Hibernate Core {4.1.4.Final}
Mapping: