Skip to main content
Version: 4.5

Class: AbstractNamingStrategy#

core.AbstractNamingStrategy

Hierarchy#

Implements#

Constructors#

constructor#

+ new AbstractNamingStrategy(): AbstractNamingStrategy

Returns: AbstractNamingStrategy

Methods#

classToMigrationName#

classToMigrationName(timestamp: string): string

Return a migration name. This name should allow ordering.

Parameters:#

NameType
timestampstring

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:12


classToTableName#

AbstractclassToTableName(entityName: string): string

Return a table name for an entity class

Parameters:#

NameType
entityNamestring

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:16


getClassName#

getClassName(file: string, separator?: string): string

Return a name of the class based on its file name

Parameters:#

NameTypeDefault value
filestring-
separatorstring'-'

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:5


joinColumnName#

AbstractjoinColumnName(propertyName: string): string

Return a join column name for a property

Parameters:#

NameType
propertyNamestring

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:18


joinKeyColumnName#

AbstractjoinKeyColumnName(entityName: string, referencedColumnName?: string): string

Return the foreign key column name for the given parameters

Parameters:#

NameType
entityNamestring
referencedColumnName?string

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:20


joinTableName#

AbstractjoinTableName(sourceEntity: string, targetEntity: string, propertyName?: string): string

Return a join table name

Parameters:#

NameType
sourceEntitystring
targetEntitystring
propertyName?string

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:22


propertyToColumnName#

AbstractpropertyToColumnName(propertyName: string): string

Return a column name for a property

Parameters:#

NameType
propertyNamestring

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:24


referenceColumnName#

AbstractreferenceColumnName(): string

Return the default reference column name

Returns: string

Implementation of: NamingStrategy

Defined in: packages/core/src/naming-strategy/AbstractNamingStrategy.ts:26

Last updated on by Renovate Bot