简体   繁体   中英

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. 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".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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