Add a relationship.
Get the relationship between two tables on a property. Short-hand for getRelationships with oneWay=true, but throws if the relationship does not exist.
The first Entity (constructor), i.e. the class that's decorated with @Table.
The second Entity.
The proeprty on Entity1 where the relationship is defined.
The RelationshipMetadata for the relationship.
Get all of the relationships between two tables, or for a single table.
The first Entity (constructor), i.e. the class that's decorated with @Table.
The second Entity.
When true, only return the relationships that Entity1 owns.
An optional property on Entity1. If passed, return the relationship for this property only (implies oneWay).
An array of RelationshipMetadata instances.
Generated using TypeDoc
Stores relationships and provides lookup functions.