You can still use cypher from java otherwise you have to do eg locking yourself
Von meinem iPhone gesendet > Am 03.10.2016 um 21:36 schrieb Abhijit Gupta <[email protected]>: > > Hi Michael, > > I tried with the CQL and was able to create unique relations. From our > application we want to create the Nodes and Relationships using JavaAPI so I > was looking for this approach. > > Many Thanks, > Abhijit > >> On Monday, October 3, 2016 at 4:36:39 AM UTC+5:30, Michael Hunger wrote: >> 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. -- 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.
