OrientBaseGraph's getVertices(String arg0, String[] arg1, Object[] arg2) doesn't return subclasses

77 Views Asked by At

I am using orientdb 2.1.4. I have a class(Vertex) ParentV which has subclass(Vertex) ChildV.

When I query the database using getVertices("ParentV", new String[]{key}, new Object[]{value}), no results of "ChildV" type are found.

Could anyone let me know how to enable polymorphic search in above function because I need all the results(including parent and child classes) where given key matches given value.

Note: I can't use any other getVertices function because there are cases with multiple key and values. These functions are provided by tinkerpop blueprints APIs.

0

There are 0 best solutions below