Skip to main content
Version: 4.4

Class: AbstractNamingStrategy#

core.AbstractNamingStrategy

Hierarchy#

Implements#

Constructors#

constructor#

+ new AbstractNamingStrategy(): AbstractNamingStrategy

Returns: AbstractNamingStrategy

Methods#

classToMigrationName#

classToMigrationName(timestamp: string): string

Parameters:#

NameType
timestampstring

Returns: string

Implementation of: NamingStrategy

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


classToTableName#

AbstractclassToTableName(entityName: string): string

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

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

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

Parameters:#

NameType
entityNamestring
referencedColumnName?string

Returns: string

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


joinTableName#

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

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

Parameters:#

NameType
propertyNamestring

Returns: string

Implementation of: NamingStrategy

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


referenceColumnName#

AbstractreferenceColumnName(): string

Returns: string

Implementation of: NamingStrategy

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

Last updated on by renovate[bot]