I was trying to manipulate OUser's through blueprints without realizing
that OUser doesn't extend V (it extends OIdentity). However,it partially
works through blueprints. You can update properties (maybe not edges/links
but I haven't tried) but can't remove the document. My question is, is it
possible to change the hierarchy to fix this?
Instead of
OUser > OIdentity
the following:
OUser > OIdentity > V
And then change the OUser and ORole relationship to use graph edges instead
of regular links?
Here's what works and fails:
Iterable<Vertex> users = ... sql query : select from OUser where name=
"reader"
Vertex vertex = (Vertex)users.iterator().next();
//Works
vertex.setProperty("password","somePassword");
//Fails
vertex.remove();
java.lang.IllegalArgumentException: The document received is not a Vertex.
Found class 'OUser'
at
com.tinkerpop.blueprints.impls.orient.OrientElement.checkClass(OrientElement.java:444)
~[bundleFile:1.7.7]
at
com.tinkerpop.blueprints.impls.orient.OrientVertex.remove(OrientVertex.java:532)
~[bundleFile:1.7.7]
--
---
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/d/optout.