Describes a relation between two Entities.
The source Entity is the one which owns this Relation
object and whose record always holds a reference to the
target Entity. The relation also describes its RelationCardinality.
If the cardinality is RelationCardinality.MANY_TO_ONE, then it means that the source Entity owns the mapping relation Property (which has always type set to PropertyType.REFERENCE). If the cardinality is RelationCardinality.ONE_TO_MANY, the target Entity owns the mapping relation Property.
- Version:
- 17.1.1
- Source:
- See:
-
- Entity representing an entity object
- RelationCardinality listing all possible cardinalitites
- DataModelFactory.createRelation(..) to understand how instances of
Relation
are created