Version: 4.3

Class: AbstractNamingStrategy

Hierarchy

Implements

Methods

classToMigrationName

classToMigrationName(timestamp: string): string

Implementation of NamingStrategy

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

Parameters:

NameType
timestampstring

Returns: string


classToTableName

AbstractclassToTableName(entityName: string): string

Implementation of NamingStrategy

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

Parameters:

NameType
entityNamestring

Returns: string


getClassName

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

Implementation of NamingStrategy

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

Parameters:

NameTypeDefault value
filestring-
separatorstring"-"

Returns: string


joinColumnName

AbstractjoinColumnName(propertyName: string): string

Implementation of NamingStrategy

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

Parameters:

NameType
propertyNamestring

Returns: string


joinKeyColumnName

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

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

Parameters:

NameType
entityNamestring
referencedColumnName?string

Returns: string


joinTableName

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

Implementation of NamingStrategy

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

Parameters:

NameType
sourceEntitystring
targetEntitystring
propertyName?string

Returns: string


propertyToColumnName

AbstractpropertyToColumnName(propertyName: string): string

Implementation of NamingStrategy

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

Parameters:

NameType
propertyNamestring

Returns: string


referenceColumnName

AbstractreferenceColumnName(): string

Implementation of NamingStrategy

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

Returns: string

Last updated on by Martin Adámek