Class HasAndBelongsToManyRelationship

Represents the metadata for a "HasAndBelongsToMany" relationship metadata within the ORM system.

Param: item

An instance of RelationshipMetadata containing the initial settings for the relationship. This can include properties like joinTableName, which are specific to many-to-many relationships.

Hierarchy (view full)

Constructors

Properties

joinTableName: string

The name of the join table used to facilitate the many-to-many relationship between entities. This table contains the foreign keys that link the related entities together.

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: "HasAndBelongsToMany" = "HasAndBelongsToMany"

A literal string indicating the type of the relationship as "HasAndBelongsToMany". This helps in distinguishing between different types of relationships within the ORM.

Generated using TypeDoc