Skip to main content
Version: Next

Interface: ManyToOneOptions<T, O>

core.ManyToOneOptions

Type parameters#

Name
T
O

Hierarchy#

Properties#

autoincrement#

Optional autoincrement: boolean

Inherited from#

ReferenceOptions.autoincrement

Defined in#

packages/core/src/decorators/Property.ts:47


cascade#

Optional cascade: Cascade[]

Inherited from#

ReferenceOptions.cascade

Defined in#

packages/core/src/decorators/Property.ts:72


columnType#

Optional columnType: string

Inherited from#

ReferenceOptions.columnType

Defined in#

packages/core/src/decorators/Property.ts:42


comment#

Optional comment: string

Inherited from#

ReferenceOptions.comment

Defined in#

packages/core/src/decorators/Property.ts:67


customType#

Optional customType: Type<any, any>

Inherited from#

ReferenceOptions.customType

Defined in#

packages/core/src/decorators/Property.ts:41


default#

Optional default: null | string | number | boolean | string[] | number[]

Inherited from#

ReferenceOptions.default

Defined in#

packages/core/src/decorators/Property.ts:50


defaultRaw#

Optional defaultRaw: string

Inherited from#

ReferenceOptions.defaultRaw

Defined in#

packages/core/src/decorators/Property.ts:51


eager#

Optional eager: boolean

Inherited from#

ReferenceOptions.eager

Defined in#

packages/core/src/decorators/Property.ts:73


entity#

Optional entity: string | () => EntityName<T>

Inherited from#

ReferenceOptions.entity

Defined in#

packages/core/src/decorators/Property.ts:71


fieldName#

Optional fieldName: string

Inherited from#

ReferenceOptions.fieldName

Defined in#

packages/core/src/decorators/Property.ts:39


fieldNames#

Optional fieldNames: string[]

Inherited from#

ReferenceOptions.fieldNames

Defined in#

packages/core/src/decorators/Property.ts:40


formula#

Optional formula: string | (alias: string) => string

Inherited from#

ReferenceOptions.formula

Defined in#

packages/core/src/decorators/Property.ts:52


getter#

Optional getter: boolean

Inherited from#

ReferenceOptions.getter

Defined in#

packages/core/src/decorators/Property.ts:63


hidden#

Optional hidden: boolean

Inherited from#

ReferenceOptions.hidden

Defined in#

packages/core/src/decorators/Property.ts:56


index#

Optional index: string | boolean

Inherited from#

ReferenceOptions.index

Defined in#

packages/core/src/decorators/Property.ts:58


inversedBy#

Optional inversedBy: string & keyof T | (e: T) => any

Defined in#

packages/core/src/decorators/ManyToOne.ts:23


joinColumn#

Optional joinColumn: string

Defined in#

packages/core/src/decorators/ManyToOne.ts:27


joinColumns#

Optional joinColumns: string[]

Defined in#

packages/core/src/decorators/ManyToOne.ts:28


lazy#

Optional lazy: boolean

Inherited from#

ReferenceOptions.lazy

Defined in#

packages/core/src/decorators/Property.ts:60


length#

Optional length: number

Inherited from#

ReferenceOptions.length

Defined in#

packages/core/src/decorators/Property.ts:44


mapToPk#

Optional mapToPk: boolean

Defined in#

packages/core/src/decorators/ManyToOne.ts:26


name#

Optional name: string

Inherited from#

ReferenceOptions.name

Defined in#

packages/core/src/decorators/Property.ts:38


nullable#

Optional nullable: boolean

Inherited from#

ReferenceOptions.nullable

Defined in#

packages/core/src/decorators/Property.ts:53


onCreate#

Optional onCreate: (entity: O) => any

Type declaration#

▸ (entity): any

Parameters#
NameType
entityO
Returns#

any

Inherited from#

ReferenceOptions.onCreate

Defined in#

packages/core/src/decorators/Property.ts:48


onDelete#

Optional onDelete: string

Defined in#

packages/core/src/decorators/ManyToOne.ts:29


onUpdate#

Optional onUpdate: (entity: O) => any

Type declaration#

▸ (entity): any

Parameters#
NameType
entityO
Returns#

any

Inherited from#

ReferenceOptions.onUpdate

Defined in#

packages/core/src/decorators/Property.ts:49


onUpdateIntegrity#

Optional onUpdateIntegrity: string

Defined in#

packages/core/src/decorators/ManyToOne.ts:30


persist#

Optional persist: boolean

Inherited from#

ReferenceOptions.persist

Defined in#

packages/core/src/decorators/Property.ts:55


precision#

Optional precision: number

Inherited from#

ReferenceOptions.precision

Defined in#

packages/core/src/decorators/Property.ts:45


primary#

Optional primary: boolean

Overrides#

ReferenceOptions.primary

Defined in#

packages/core/src/decorators/ManyToOne.ts:25


scale#

Optional scale: number

Inherited from#

ReferenceOptions.scale

Defined in#

packages/core/src/decorators/Property.ts:46


serializedName#

Optional serializedName: string

Inherited from#

ReferenceOptions.serializedName

Defined in#

packages/core/src/decorators/Property.ts:66


serializedPrimaryKey#

Optional serializedPrimaryKey: boolean

Inherited from#

ReferenceOptions.serializedPrimaryKey

Defined in#

packages/core/src/decorators/Property.ts:64


serializer#

Optional serializer: (value: any) => any

Type declaration#

▸ (value): any

Parameters#
NameType
valueany
Returns#

any

Inherited from#

ReferenceOptions.serializer

Defined in#

packages/core/src/decorators/Property.ts:65


setter#

Optional setter: boolean

Inherited from#

ReferenceOptions.setter

Defined in#

packages/core/src/decorators/Property.ts:62


strategy#

Optional strategy: LoadStrategy

Inherited from#

ReferenceOptions.strategy

Defined in#

packages/core/src/decorators/Property.ts:74


type#

Optional type: unknown

Inherited from#

ReferenceOptions.type

Defined in#

packages/core/src/decorators/Property.ts:43


unique#

Optional unique: string | boolean

Inherited from#

ReferenceOptions.unique

Defined in#

packages/core/src/decorators/Property.ts:59


unsigned#

Optional unsigned: boolean

Inherited from#

ReferenceOptions.unsigned

Defined in#

packages/core/src/decorators/Property.ts:54


version#

Optional version: boolean

Inherited from#

ReferenceOptions.version

Defined in#

packages/core/src/decorators/Property.ts:57


wrappedReference#

Optional wrappedReference: boolean

Defined in#

packages/core/src/decorators/ManyToOne.ts:24