Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Neo4j Relationships in java  RSS feed

ashwini hirlekar
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating unique neo4j relationships in java class based on no. of column values in database. Value of column "Interface_Name" will be assigned to each relationship.My Code :

String rel=rs.getString("Interface_Name");
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("D://My Graph");
Transaction tx=graphDb.beginTx();
RelationshipType rel = DynamicRelationshipType.withName(rel); //Gives error since "rel" is string
How can i create multiple relationship Types based on Column values in DB?Inside while loop Relationship Types should get created according to DB values.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!