Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/relations/OneToOne"

Index

Functions

Functions

OneToOne

  • OneToOne<T>(typeFunction: function, options?: RelationOptions): Function
  • OneToOne<T>(typeFunction: function, inverseSide?: string | function, options?: RelationOptions): Function
  • One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity1 id on its own side.

    Type parameters

    • T

    Parameters

    Returns Function

  • One-to-one relation allows to create direct relation between two entities. Entity1 have only one Entity2. Entity1 is an owner of the relationship, and storages Entity1 id on its own side.

    Type parameters

    • T

    Parameters

    • typeFunction: function
    • Optional inverseSide: string | function
    • Optional options: RelationOptions

    Returns Function

Generated using TypeDoc