When adding vertices, use the following form:
FramedGraph framedGraph = ...
Vertex vertex = framedGraph.addVertex("class:YourClassName");
That sets the orientdb field "@class" to "YourClassName".
On Thursday, August 21, 2014 11:14:56 AM UTC-4, Keven Wang wrote:
>
> Hi guys,
>
> I have a question when use Tinkerpop Frames and OrientDB. When add vertex
> when OrientDB's API, you can specify a class name, then vertex will be
> stored in this class instead of "V". But when you Frames, i find it is
> impossible, everything will be stored in "V". I don't like this approach,
> in my opinion, different domain objects should be stored in different table
> (or in OrientDB world it is called class). Do you have any workaround for
> this? Thank you very much!
>
>
> BR/Keven
>
--
---
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.