Skip to main content
Version: 6.4

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

inversedBy

inversedBy: EntityKey<Target, false>

inverseJoinColumns

inverseJoinColumns: string[]

optionalitems

items?: (string | number)[]

joinColumns

joinColumns: string[]

kind

optionallazy

lazy?: boolean

optionallength

length?: number

mappedBy

mappedBy: EntityKey<Target, false>

optionalmapToPk

mapToPk?: boolean

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

ownColumns

ownColumns: string[]

owner

owner: boolean

optionalpersist

persist?: boolean

pivotEntity

pivotEntity: string

pivotTable

pivotTable: string

optionalprecision

precision?: number

optionalprefix

prefix?: string | boolean

optionalprefixMode

prefixMode?: EmbeddedPrefixMode

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, options?: SerializeOptions<any, never, never>) => any

Type declaration

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>