I know how to create an Record with the Web GUI of OrientDB. How am I able to create a New Record with the Java API? This is what I have done with the GUI so far.
You can download the full version of the picture here
This is my code so far but my knowledge is to low. I just know how to handle Vertex.
OrientGraphFactory ogf = new OrientGraphFactory(
"plocal:/home/paulkalkbrenner/Dokumente/odb/databases/ConnectER", "admin", "admin");
OrientGraph og = ogf.getTx();
try {
System.out.println("message bevor vertex");
Vertex relation0_vertex = og.addVertex(null);
relation0_vertex.setProperty("Lastname", rel0);
//System.out.println("Features = " + og.getFeatures());
for (Vertex v : og.getVertices()) {
System.out.println(v.getProperty("Lastname"));
}
}
finally {
og.shutdown();
}
