I'm just curious, what will happen to the RelationshipEntity annotated relationship when either the start node or the end node was deleted. At the beginning i thought the relationship entity apply an additional property to the relationship between these two node. But when i deleted the start node then i search the relationship, it's still there but i got an exception because my code can't find the start node.

So how does the Relationship Entity work, what happens when i delete the connecting node and what should i do to prevent bug. Thank you!