Version: 4.3

Class: EntityCaseNamingStrategy

This strategy keeps original entity/property names for table/column.

Hierarchy

Implements

Methods

classToMigrationName

classToMigrationName(timestamp: string): string

Implementation of NamingStrategy

Inherited from AbstractNamingStrategy.classToMigrationName

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

Parameters:

NameType
timestampstring

Returns: string


classToTableName

classToTableName(entityName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.classToTableName

Defined in packages/core/src/naming-strategy/EntityCaseNamingStrategy.ts:8

Parameters:

NameType
entityNamestring

Returns: string


getClassName

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

Implementation of NamingStrategy

Inherited from AbstractNamingStrategy.getClassName

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

Parameters:

NameTypeDefault value
filestring-
separatorstring"-"

Returns: string


joinColumnName

joinColumnName(propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.joinColumnName

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

Parameters:

NameType
propertyNamestring

Returns: string


joinKeyColumnName

joinKeyColumnName(entityName: string, referencedColumnName?: string, composite?: boolean): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.joinKeyColumnName

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

Parameters:

NameTypeDefault value
entityNamestring-
referencedColumnName?string-
compositebooleanfalse

Returns: string


joinTableName

joinTableName(sourceEntity: string, targetEntity: string, propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.joinTableName

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

Parameters:

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns: string


propertyToColumnName

propertyToColumnName(propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.propertyToColumnName

Defined in packages/core/src/naming-strategy/EntityCaseNamingStrategy.ts:30

Parameters:

NameType
propertyNamestring

Returns: string


referenceColumnName

referenceColumnName(): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.referenceColumnName

Defined in packages/core/src/naming-strategy/EntityCaseNamingStrategy.ts:34

Returns: string

Last updated on by Martin Adámek