Associations are a conceptual feature to associate domain terms in a modeling system.
Associations are based on semantic of PK/FK links in relation data model, but in Paml associations are just conceptual feature that allow specifying how domain terms are associated each other with corresponding arity. Concrete implementation of an association is specified in transformations, so the association can be translated into PK/FK relationship in relation DB or object graph with references via properties like in C#.
Associations are a Paml language feature, like values, objects or abstractions. Associations are not mapped to object data, collaborators or value items, so objects consist of state, collaborators and associations.
Associations define association properties, like navigation properties in Entity Framework.
An association can have an optional name, so a transformation can be applied to it. The applied transformations can assign filtering to association properties, produce indexes and/or constraint etc.
As a particular case, associations can be used to declare a domain scheme like DbContext in Entity Framework.
Associations can connect different kinds of Paml elements, that’s objects can be associated with values, or values can be associated with abstractions. But in essence, associations are though data model mechanism, so any Paml elements are treated as data/values.
In Paml source code, association properties are displayed in different styling/colors than any other elements like object data/collaborators or value items, to highlight that associations have special semantics.
Write a comment