ParentRelation

@Entity
class ParentRelation(var dataID: Long? = null, val uri: String = "", var node: Node? = null)

The ParentRelation models inheritance between two Nodes. This relation is a unidirectional edge and is owned by the child Node, i.e., the specialization.

  • The parent link is an open property, i.e., it is only evaluated at runtime if resolution is possible. Resolution must be possible during instantiation.

  • Parents must be from the same Fragment.

Constructors

Link copied to clipboard
constructor()
constructor(dataID: Long? = null, uri: String = "", node: Node? = null)

Properties

Link copied to clipboard
var dataID: Long?

Technical database (JPA) identifier used for relation joins. The dataID is system specific and not exported to XML. It must not be used to identify elements in distributed use-cases. It should not be used to identify elements from outside the service. All model elements provide other suitable identifiers to be used.

Link copied to clipboard
var node: Node?

Autowired link that is not part of the JPA schema (transient). This is not the parent Node! But the owner of this element.

Link copied to clipboard
val uri: String

The URI defines the target parent Node to inherit from by its URI. This reference is resolved during edit, load and store. Otherwise, the model becomes (temporarily) invalid. A modicio URI is defined as a "xs:anyURI" base with the schema extension "modicio:.*"

Functions

Link copied to clipboard