Why do you want to do it from java? and not using the java-driver with
cypher?

On Wed, Sep 28, 2016 at 10:20 AM, Abhijit Gupta <[email protected]>
wrote:

> Hi All,
>
> I am new to Neo4J and able to create the Nodes and Relationship using CQL
> from the Neo4J editor.
>
> From Java I am able to create the Nodes but unable to create the
> Relationships.
>
> Below is the CQL for Relationship which I want to create from Java, any
> pointer on how to do this using Java
>
> //Portfolio_Program_Project_Relation
> MATCH (portfolio: portfolios),(programme: programmes),(project: projects)
> WHERE portfolio.portfolioId = programme.portfolioId AND
> programme.programmeId = project.programmeId
> CREATE
> (portfolio)-[relation1:portfolio_program_project]->(programme),
> (programme)-[relation2:portfolio_program_project]->(project);
>
> Cheers,
> Abhijit
>
> --
> 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.
>

-- 
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