Skip to main content
Version: 6.3

EntityProperty <Owner, Target>

Index

Properties

optionalarray

array?: boolean

optionalautoincrement

autoincrement?: boolean

cascade

cascade: Cascade[]

columnTypes

columnTypes: string[]

optionalcomment

comment?: string

optionalconcurrencyCheck

concurrencyCheck?: boolean

optionalcustomOrder

customOrder?: string[] | number[] | boolean[]

optionalcustomType

customType?: Type<any, any>

customTypes

customTypes: (undefined | Type<any, any>)[]

optionaldefault

default?: null | string | number | boolean

optionaldefaultRaw

defaultRaw?: string

optionaldeferMode

deferMode?: DeferMode

optionaldeleteRule

deleteRule?: AnyString | cascade | no action | set null | set default

optionaldiscriminatorColumn

discriminatorColumn?: string

optionaleager

eager?: boolean

embeddable

embeddable: EntityClass<Owner>

optionalembedded

embedded?: [EntityKey<Owner, false>, EntityKey<Owner, false>]

optionalembeddedPath

embeddedPath?: string[]

embeddedProps

embeddedProps: Dictionary<EntityProperty<any, any>>

entity

entity: () => EntityName<Owner>

Type declaration

optionalenum

enum?: boolean

optionalextra

extra?: string

mysql only

optionalfieldNameRaw

fieldNameRaw?: string

fieldNames

fieldNames: string[]

optionalfixedOrder

fixedOrder?: boolean

optionalfixedOrderColumn

fixedOrderColumn?: string

optionalformula

formula?: (alias: string) => string

Type declaration

    • (alias: string): string
    • Parameters

      • alias: string

      Returns string

optionalgenerated

generated?: string | GeneratedColumnCallback<Owner>

optionalgetter

getter?: boolean

optionalgetterName

getterName?: keyof Owner

optionalgroups

groups?: string[]

hasConvertToDatabaseValueSQL

hasConvertToDatabaseValueSQL: boolean

hasConvertToJSValueSQL

hasConvertToJSValueSQL: boolean

optionalhidden

hidden?: boolean

optionalhydrate

hydrate?: boolean

optionalignoreSchemaChanges

ignoreSchemaChanges?: (type | extra | default)[]

optionalindex

index?: string | boolean

optionalinherited

inherited?: boolean

inverseJoinColumns

inverseJoinColumns: string[]

inversedBy

inversedBy: EntityKey<Target, false>

optionalitems

items?: (string | number)[]

joinColumns

joinColumns: string[]

kind

optionallazy

lazy?: boolean

optionallength

length?: number

optionalmapToPk

mapToPk?: boolean

mappedBy

mappedBy: EntityKey<Target, false>

name

name: EntityKey<Owner, false>

optionalnativeEnumName

nativeEnumName?: string

optionalnullable

nullable?: boolean

optionalobject

object?: boolean

optionalonCreate

onCreate?: (entity: Owner, em: EntityManager<IDatabaseDriver<Connection>>) => any

Type declaration

optionalonUpdate

onUpdate?: (entity: Owner, em: EntityManager<IDatabaseDriver<Connection>>) => any

Type declaration

optionaloptional

optional?: boolean

optionalorderBy

orderBy?: QueryOrderMap<Owner> | QueryOrderMap<Owner>[]

optionalorphanRemoval

orphanRemoval?: boolean

owner

owner: boolean

optionalpersist

persist?: boolean

pivotEntity

pivotEntity: string

pivotTable

pivotTable: string

optionalprecision

precision?: number

optionalprefix

prefix?: string | boolean

optionalprimary

primary?: boolean

optionalref

ref?: boolean

referencedColumnNames

referencedColumnNames: string[]

referencedPKs

referencedPKs: EntityKey<Owner, false>[]

referencedTableName

referencedTableName: string

optionalreturning

returning?: boolean

runtimeType

runtimeType: string | number | bigint | boolean | object | AnyString | Buffer | Date | any

optionalscale

scale?: number

optionalserializedName

serializedName?: string

serializedPrimaryKey

serializedPrimaryKey: boolean

optionalserializer

serializer?: (value: any) => any

Type declaration

    • (value: any): any
    • Parameters

      • value: any

      Returns any

optionalsetter

setter?: boolean

optionalstrategy

strategy?: LoadStrategy

optionaltargetMeta

targetMeta?: EntityMetadata<Target>

optionaltrackChanges

trackChanges?: boolean

type

type: string | bigint | boolean | uuid | date | time | datetime | blob | uint8array | array | enumArray | enum | json | integer | smallint | tinyint | mediumint | float | double | decimal | character | text | interval | unknown | AnyString

optionalunique

unique?: string | boolean

optionalunsigned

unsigned?: boolean

optionalupdateRule

updateRule?: AnyString | cascade | no action | set null | set default

optionaluserDefined

userDefined?: boolean

optionalversion

version?: boolean

optionalwhere

where?: FilterQuery<Target>