SpringSource/spring-data-neo4j — pull request #90 by benday280412 (2012-10-30 10:01:38+00:00)
Title: spatial #36 - Possible Solution

Hi,

This is part of a possible solution to issue https://github.com/neo4j/spatial/issues/36 raised against neo4j spatial. There is a corresponding change in spatial for which I will also raise a pull request.

The change tries to use the same approach as used by the Lucene index, which uses a CatchingIteratorWrapper for returning results. This means that deletion only happens when the geom node comes back as part of a query and is found to lack its corresponding domain node.

I've put some comments and questions in the code where I'm not 100% if my understanding is correct.

I look forward to your feedback.

Cheers,

Ben