Represents an "Owned By" relationship metadata within the ORM system. These are uni-directional relationships to the parent

The initial relationship metadata to be copied into this "Owned By" relationship instance. This facilitates the creation and setup of relationship metadata based on existing configurations.

Hierarchy (View Summary)

Constructors

Properties

foreignKey: ForeignKeyProperty

The attribute representing the foreign key in the relationship. This specifies the field in the current entity that links to the owning entity, enabling relationship queries and operations.

propertyName: keyof default

The property name on the source entity that holds or references the related entity or entities. This name is used within the source entity's class definition to access the related entity.

Note: This class is abstract and cannot be instantiated directly. Instead, it should be extended by specific relationship metadata classes that define concrete types of relationships.

The entity class that is the target of the relationship. This specifies the class of the entity on the "other side" of the relationship.

type: "OwnedBy"

The type of the relationship, statically set to "OwnedBy" to signify a unidirectional relationship where the current entity is owned by another entity.