[neo4j] Exception persisting nodes with duplicate unique keys
Hi there,
I am trying to use the unique entity support of Spring Data Neo4j. I have annotated a field with @Indexed(unique=true)
I found that this is working, since no duplicate nodes are being created in the database. But I cannot catch the exception while persisting it.
I want to do something like the following
try
{
u1.persist();
}
catch (SomeException e)
{
System.out.println(e.getMessage());
}
Does anybody have any idea, how to do this ?
Thanks
Faisal