简体   繁体   English

Hyperledger作曲家中的关系是什么?

[英]What are relationships in hyperledger composer?

您能否解释由“箭头->”定义的Hyperledger Composer中的关系概念?

A relationship in the Composer language is a tuple composed of: Composer语言中的关系是一个元组,其组成为:

  1. The namespace of the type being referenced 被引用类型的名称空间
  2. The type name of the type being referenced 被引用类型的类型名称
  3. The identifier of the instance being referenced 被引用实例的标识符

A Relationship is a typed pointer to an instance. 关系是指向实例的类型化指针。 ie the relationship with 即与

 namespace = 'org.acme', 
    type = 'Vehicle',
    id = 'ABC' 

creates a pointer that points at an instance of org.acme.Vehicle with the id ABC. 创建一个指向ID为ABC的org.acme.Vehicle实例的指针。

For more details you can have use below links. 有关更多详细信息,请使用下面的链接。

https://hyperledger.github.io/composer/jsdoc/module-composer-common.Relationship.html https://hyperledger.github.io/composer/jsdoc/module-composer-common.Relationship.html

https://hyperledger.github.io/composer/reference/cto_language.html https://hyperledger.github.io/composer/reference/cto_language.html

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

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