Hi,

My use case is pretty simple.

I want to create a *Meeting* (represented by a node). 
Each Meeting accepts several *Participation*s (Participation represented by 
another node linked to Meeting) :

class Meeting ........ {
    ....................
@org.springframework.data.neo4j.annotation.Fetch
@org.springframework.data.neo4j.annotation.RelatedTo(`type` = "TO", 
direction = Direction.INCOMING)
var participations: java.util.Set[Participation] = new util.HashSet[
Participation]
}


When a Meeting is created, participations relationship should be contain 
the Meeting's creator, and an event (*Event* Node) should be also saved 
having this Participation as a relationship:

class Event (......., @Fetch @RelatedTo(`type` = "CONCERNS", direction = 
Direction.OUTGOING) val participation: Participation)) 


The issue: 

*org.springframework.dao.DataRetrievalFailureException: Node 66 not found; 
nested exception is org.neo4j.graphdb.NotFoundException: Node 66 not found*

I interpret SDN doing those steps:


   - Want to Save Meetings, but noticed that a several relationship 
   *Participation*s must be created. So create those ones.
   - Meeting is then saved, linked to those Participations.
   - Event should be save, but noticed that it needs the creator's 
   Participation reference. So SDN tries to find it, but fails !

Why can't SDN find the Participation relationship since the whole is being 
made inside the same transaction? 

Thanks a lot,

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to