Skip to main content
Version: Next

EmbeddableOptions <Owner>

Index

Properties

optionalabstract

abstract?: boolean

optionalconstructorParams

constructorParams?: (Owner extends EntityClass<P> ? keyof P : string)[]

Specify constructor parameters to be used in em.create or when forceConstructor is enabled. Those should be names of declared entity properties in the same order as your constructor uses them. The ORM tries to infer those automatically, use this option in case the inference fails.

optionaldiscriminator

discriminator?: AnyString | (Owner extends EntityClass<P> ? keyof P : string)

For polymorphic embeddables. Property name on the embeddable class that stores the discriminator value.

optionaldiscriminatorColumn

discriminatorColumn?: string

For polymorphic embeddables. Override the discriminator column name (the property is named via discriminator; defaults to the naming-strategy-derived column).

optionaldiscriminatorMap

discriminatorMap?: Dictionary<string>

optionaldiscriminatorValue

discriminatorValue?: string | number