Skip to main content
Version: 4.4

Interface: ManyToOneOptions<T, O>#

core.ManyToOneOptions

Type parameters#

Name
T
O

Hierarchy#

Properties#

cascade#

Optional cascade: undefined | Cascade[]

Inherited from: ReferenceOptions.cascade

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


columnType#

Optional columnType: undefined | string

Inherited from: ReferenceOptions.columnType

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


comment#

Optional comment: undefined | string

Inherited from: ReferenceOptions.comment

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


customType#

Optional customType: undefined | Type<any, any>

Inherited from: ReferenceOptions.customType

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


default#

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

Inherited from: ReferenceOptions.default

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


defaultRaw#

Optional defaultRaw: undefined | string

Inherited from: ReferenceOptions.defaultRaw

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


eager#

Optional eager: undefined | boolean

Inherited from: ReferenceOptions.eager

Defined in: packages/core/src/decorators/Property.ts:68


entity#

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

Inherited from: ReferenceOptions.entity

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


fieldName#

Optional fieldName: undefined | string

Inherited from: ReferenceOptions.fieldName

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


fieldNames#

Optional fieldNames: undefined | string[]

Inherited from: ReferenceOptions.fieldNames

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


formula#

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

Inherited from: ReferenceOptions.formula

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


hidden#

Optional hidden: undefined | boolean

Inherited from: ReferenceOptions.hidden

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


index#

Optional index: undefined | string | boolean

Inherited from: ReferenceOptions.index

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


inversedBy#

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

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


joinColumn#

Optional joinColumn: undefined | string

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


joinColumns#

Optional joinColumns: undefined | string[]

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


lazy#

Optional lazy: undefined | boolean

Inherited from: ReferenceOptions.lazy

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


length#

Optional length: undefined | number

Inherited from: ReferenceOptions.length

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


mapToPk#

Optional mapToPk: undefined | boolean

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


name#

Optional name: undefined | string

Inherited from: ReferenceOptions.name

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


nullable#

Optional nullable: undefined | boolean

Inherited from: ReferenceOptions.nullable

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


onCreate#

Optional onCreate: undefined | (entity: O) => any

Inherited from: ReferenceOptions.onCreate

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


onDelete#

Optional onDelete: undefined | string

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


onUpdate#

Optional onUpdate: undefined | (entity: O) => any

Inherited from: ReferenceOptions.onUpdate

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


onUpdateIntegrity#

Optional onUpdateIntegrity: undefined | string

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


persist#

Optional persist: undefined | boolean

Inherited from: ReferenceOptions.persist

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


primary#

Optional primary: undefined | boolean

Overrides: ReferenceOptions.primary

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


serializedName#

Optional serializedName: undefined | string

Inherited from: ReferenceOptions.serializedName

Defined in: packages/core/src/decorators/Property.ts:61


serializedPrimaryKey#

Optional serializedPrimaryKey: undefined | boolean

Inherited from: ReferenceOptions.serializedPrimaryKey

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


serializer#

Optional serializer: undefined | (value: any) => any

Inherited from: ReferenceOptions.serializer

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


strategy#

Optional strategy: undefined | SELECT_IN | JOINED

Inherited from: ReferenceOptions.strategy

Defined in: packages/core/src/decorators/Property.ts:69


type#

Optional type: unknown

Inherited from: ReferenceOptions.type

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


unique#

Optional unique: undefined | string | boolean

Inherited from: ReferenceOptions.unique

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


unsigned#

Optional unsigned: undefined | boolean

Inherited from: ReferenceOptions.unsigned

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


version#

Optional version: undefined | boolean

Inherited from: ReferenceOptions.version

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


wrappedReference#

Optional wrappedReference: undefined | boolean

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

Last updated on by Martin Adámek