Skip to main content
Version: 4.5

Interface: OneToOneOptions<T, O>#

core.OneToOneOptions

Type parameters#

Name
T
O

Hierarchy#

Properties#

cascade#

Optional cascade: Cascade[]

Inherited from: void

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


columnType#

Optional columnType: string

Inherited from: void

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


comment#

Optional comment: string

Inherited from: void

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


customType#

Optional customType: Type<any, any>

Inherited from: void

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


default#

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

Inherited from: void

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


defaultRaw#

Optional defaultRaw: string

Inherited from: void

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


eager#

Optional eager: boolean

Inherited from: void

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


entity#

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

Inherited from: void

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


fieldName#

Optional fieldName: string

Inherited from: void

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


fieldNames#

Optional fieldNames: string[]

Inherited from: void

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


formula#

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

Inherited from: void

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


hidden#

Optional hidden: boolean

Inherited from: void

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


index#

Optional index: string | boolean

Inherited from: void

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


inverseJoinColumn#

Optional inverseJoinColumn: string

Inherited from: void

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


inverseJoinColumns#

Optional inverseJoinColumns: string[]

Inherited from: void

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


inversedBy#

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

Defined in: packages/core/src/decorators/OneToOne.ts:15


joinColumn#

Optional joinColumn: string

Inherited from: void

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


joinColumns#

Optional joinColumns: string[]

Inherited from: void

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


lazy#

Optional lazy: boolean

Inherited from: void

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


length#

Optional length: number

Inherited from: void

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


mapToPk#

Optional mapToPk: boolean

Defined in: packages/core/src/decorators/OneToOne.ts:18


mappedBy#

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

Inherited from: void

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


name#

Optional name: string

Inherited from: void

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


nullable#

Optional nullable: boolean

Inherited from: void

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


onCreate#

Optional onCreate: (entity: O) => any

Type declaration:#

▸ (entity: O): any

Parameters:#

NameType
entityO

Returns: any

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

Inherited from: void

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


onDelete#

Optional onDelete: string

Defined in: packages/core/src/decorators/OneToOne.ts:19


onUpdate#

Optional onUpdate: (entity: O) => any

Type declaration:#

▸ (entity: O): any

Parameters:#

NameType
entityO

Returns: any

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

Inherited from: void

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


onUpdateIntegrity#

Optional onUpdateIntegrity: string

Defined in: packages/core/src/decorators/OneToOne.ts:20


orphanRemoval#

Optional orphanRemoval: boolean

Inherited from: void

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


owner#

Optional owner: boolean

Defined in: packages/core/src/decorators/OneToOne.ts:14


persist#

Optional persist: boolean

Inherited from: void

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


primary#

Optional primary: boolean

Overrides: void

Defined in: packages/core/src/decorators/OneToOne.ts:17


referenceColumnName#

Optional referenceColumnName: string

Inherited from: void

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


serializedName#

Optional serializedName: string

Inherited from: void

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


serializedPrimaryKey#

Optional serializedPrimaryKey: boolean

Inherited from: void

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


serializer#

Optional serializer: (value: any) => any

Type declaration:#

▸ (value: any): any

Parameters:#

NameType
valueany

Returns: any

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

Inherited from: void

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


strategy#

Optional strategy: LoadStrategy

Inherited from: void

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


type#

Optional type: unknown

Inherited from: void

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


unique#

Optional unique: string | boolean

Inherited from: void

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


unsigned#

Optional unsigned: boolean

Inherited from: void

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


version#

Optional version: boolean

Inherited from: void

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


wrappedReference#

Optional wrappedReference: boolean

Defined in: packages/core/src/decorators/OneToOne.ts:16

Last updated on by Renovate Bot