简体   繁体   English

继承黑白边缘

[英]Inheritance b/w Edges

我有一类边缘是Selling_link,另一类边缘是Selled_link,而sold_link具有与Selling_link相同的属性,只不过在sold_link中包含一个附加属性,所以你们建议我应该将Selling_link继承到sold_link吗?

With OrientDB You can use inheritance between edge classes, mostly if it's useful to use polymorphism. 使用OrientDB,可以在边缘类之间使用继承,主要是在使用多态性很有用的情况下。 Example: 例:

select from order where in('ordered').city in 'Rome'

If you have ordered edge class as base class and other classes that extend it. 如果已将边缘类定为基类以及其他对其进行扩展的类。 In this case the query fetches all the incoming edges of classes that are "instanceof ordered". 在这种情况下,查询将获取“ instanceofordered”类的所有传入边缘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM