I am using Neo4j 3.0.0 with spring-data-neo4j (Version 4.1.1.RELEASE) and the neo4j-ogm-bolt-driver. I want to create the same relationship (same type) between two nodes multiple times.
Persisting the @RelationshipEntity
multiple times via a GraphRepository
interface only creates the relationship once.
After some investigation on this topic I found the workaround described here: Cannot add more than one relationship between nodes in neo4j but in my version of OGM it seems the method createRelationshipBetween
is not longer existing in the Neo4jTemplate
.
Is there any solution available with OGM or do I have to execute the creation of the duplicate relationships with cypher queries?
I need to have the same relationship-type multiple times between two nodes, therefore to add some other reltionship-type is not an option for me.