Discussion:
[orientdb] ODB 3.X Vertex Inheritance
Robert Bergstrom
2018-01-29 15:13:56 UTC
Permalink
From the documentation here
<http://orientdb.com/docs/3.0.x/java/Document-API-Class.html>, the you
create a new vertex class (a subclass of V) by calling "createVertexClass".
How do you create a subclass of your new vertex class? I've tried using the
"createClass" method specifying the subclass. It works without exception,
but I wanted to verity this was the correct way. Looking at the OSchema
methods, vertexes are not mentioned at all, so a bit confusing.

Am I on the right path? What did I miss?

TIA
--
---
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 orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Luigi Dell'Aquila
2018-01-31 09:16:08 UTC
Permalink
Hi Robert,

That's correct, but I understand your concern, probably having an
additional method like createVertexClass(name, superclass), that also
checks that the supeclass is a vertex class, could be convenient. We will
consider it in the near future

Thanks

Luigi
Post by Robert Bergstrom
From the documentation here
<http://orientdb.com/docs/3.0.x/java/Document-API-Class.html>, the you
create a new vertex class (a subclass of V) by calling "createVertexClass".
How do you create a subclass of your new vertex class? I've tried using the
"createClass" method specifying the subclass. It works without exception,
but I wanted to verity this was the correct way. Looking at the OSchema
methods, vertexes are not mentioned at all, so a bit confusing.
Am I on the right path? What did I miss?
TIA
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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 orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...