TitanTransaction newTransaction = graph.newTransaction();
TitanVertex newUser = graph.addVertex(GraphConstants.VertexLabel.user.toString());
newUser.property(UserGraphConstants.VertexProps.accessToke.toString(), "123");
newUser.property(UserGraphConstants.VertexProps.gender.toString(), userData.getGender());
newUser.property(UserGraphConstants.VertexProps.joinedDate.toString(), System.currentTimeMillis());
newUser.property(UserGraphConstants.VertexProps.userBlocked.toString(), false);
newUser.property(UserGraphConstants.VertexProps.userLoginId.toString(), userData.getEmail());
newUser.property(UserGraphConstants.VertexProps.userName.toString(), userData.getName());
newUser.property(UserGraphConstants.VertexProps.userPwd.toString(), passwordEncoder.encode(userData.getPwd()));
newTransaction.commit();
HashMap returnValues = new HashMap();
returnValues.put("name", userData.getName());
returnValues.put("id", newUser.id());
TitanGraph graph = TitanFactory.open("/home/manish/do_practice/titan/titan-1.0.0-hadoop1/conf/titan-cassandra-es.properties");
TitanVertex v = graph.query().has(UserGraphConstants.VertexProps.userLoginId.toString(), "
f...@xyz.com").vertices().iterator().next();
System.out.println(v);
In my desktop application I am getting java.util.NoSuchElementException.