I have a graph created in which i want to impose an inheritance model .
As a sample code I am defining superclass and subclass doing somewhat like this:
OrientGraph graph = new OrientGraph("remote:/localhost/newhilti", "root", "varun");
graph.createVertexType("Mysubclass", "Person");
in this I have already made a Person class(superclass for Mysubclass) which is containing some properties and I am defining some other distinct properties for Mysubclass too like this:
Vertex vPerson = graph.addVertex("class:Mysubclass");
vPerson.setProperty("firstName", "John");
vPerson.setProperty("lastName", "Smith");
graph.commit();
Now I cannot see the properties which are in Person class when I query Mysubclass. Are they not inherited properly or I am missing some link . Please suggest.
Thanks-
Varun Tahin