Hello everybody, 

Database was created on schema-less format, all vertices were inserted with 
graph.addVertex(null), type of vertex is set on properties (like user, 
email, etc..) right now we need convert all vertexes to  schema-hybrid 
format. Right now all vertexes converted to schema like 

public enum ItemType {

ROOT, USER, FOLDER, BLOB, TAG, PROPERTY

};

for (ItemType type : ItemType.values()) {

try {

graph.createVertexType(type.toString());

} catch (OSchemaException e) {

logger.debug("Vertex class "+type.toString()+" already exists in current 
database", e);

}

};


and all new vertexes inserted as graph.addVertex("class:"+type.toString());


Problem is when I try associate items like graph.addEdge(null, 
parentVertex, childVertex, relationship.toString().toLowerCase(Locale.
ENGLISH)); I get exception "The class user does not extend class 'E' and 
therefore cannot be considered an Edge "


Thanks for any clue 


Regards 

Valentin

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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/groups/opt_out.

Reply via email to