Database design 我应该在WSO2 GREG中使用依赖项或关联进行建模吗?

Database design 我应该在WSO2 GREG中使用依赖项或关联进行建模吗?,database-design,wso2,wso2greg,Database Design,Wso2,Wso2greg,在WSO2 GREG中,您可以建模对象之间的至少两种类型的关系:关联和依赖。我已经看到治理API在这两个方面有所不同——对于API用户来说,依赖关系可能更直接一些。不过,关联可以有类型 你会推荐以下方法吗 if (there are more than one type of relation directed from A to B) use associations for this relation! else use dependencies for this rel

在WSO2 GREG中,您可以建模对象之间的至少两种类型的关系:关联和依赖。我已经看到治理API在这两个方面有所不同——对于API用户来说,依赖关系可能更直接一些。不过,关联可以有类型

你会推荐以下方法吗

if (there are more than one type of relation directed from A to B)
     use associations for this relation!
else
     use dependencies for this relation!

为模型选择关系类型时使用哪些标准?

可以定义从资源到另一资源的关联。在那里,您可以指向存储在注册表或外部URL位置中的资源。定义关联时,可以在关联配置期间指定关联类型,如“包含”或“使用”。这些值帮助您确定资源之间的关系

依赖关系是关联的一种特殊化,表示一个资源对另一个资源有依赖关系(例如:WSDL文件依赖于某些模式)

请参阅