@@ -22,10 +22,10 @@ public interface CompositionRelationRespository extends GraphDbRepository<Compos
* @param targetId
* @return
*/
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Composition]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Composition]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where id(source)=$sourceId and id(target)=$targetId merge p=(source)-[r:Composition]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(id(source)=$sourceId and id(target)=$targetId).merge(p=(source)-[r:Composition]->(target)).return(p)")
@@ -18,10 +18,10 @@ public interface ExecuteRelationRepository extends GraphDbRepository<ExecuteRela
* @param targetId
* @return
*/
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Execute]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Execute]->(target)).return(p)")
@@ -23,10 +23,10 @@ public interface InputRelationReRepository extends GraphDbRepository<InputRelati
* @param targetId
* @return
*/
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Input]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Input]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where id(source)=$sourceId and id(target)=$targetId merge p=(source)-[r:Input]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(id(source)=$sourceId and id(target)=$targetId).merge(p=(source)-[r:Input]->(target)).return(p)")
@@ -22,10 +22,10 @@ public interface OutputRelationRepository extends GraphDbRepository<OutputRelati
* @param targetId
* @return
*/
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Output]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Output]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where id(source)=$sourceId and id(target)=$targetId merge p=(source)-[r:Output]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(id(source)=$sourceId and id(target)=$targetId).merge(p=(source)-[r:Output]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Post]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Post]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where source.metadataId=$sourceId and target.metadataId=$targetId create p=(source)-[r:Pre]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(source.metadataId=$sourceId and target.metadataId=$targetId).create(p=(source)-[r:Pre]->(target)).return(p)")
@Query("match (source:BaseNode),(target:BaseNode) where id(source)=$sourceId and id(target)=$targetId merge p=(source)-[r:TempRelation]->(target) return p")
@Query("g.match((source:BaseNode),(target:BaseNode)).where(id(source)=$sourceId and id(target)=$targetId).merge(p=(source)-[r:TempRelation]->(target)).return(p)")