Skip to main content
Version: 4.5

core.EntityCaseNamingStrategy

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

Hierarchy#

Constructors#

constructor#

+ new EntityCaseNamingStrategy(): EntityCaseNamingStrategy

Returns: EntityCaseNamingStrategy

Inherited from: AbstractNamingStrategy

Methods#

classToMigrationName#

classToMigrationName(timestamp: string): string

Parameters:#

NameType
timestampstring

Returns: string

Inherited from: AbstractNamingStrategy

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


classToTableName#

classToTableName(entityName: string): string

Parameters:#

NameType
entityNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


getClassName#

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

Parameters:#

NameTypeDefault value
filestring-
separatorstring'-'

Returns: string

Inherited from: AbstractNamingStrategy

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


joinColumnName#

joinColumnName(propertyName: string): string

Parameters:#

NameType
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


joinKeyColumnName#

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

Parameters:#

NameTypeDefault value
entityNamestring-
referencedColumnName?string-
compositebooleanfalse

Returns: string

Overrides: AbstractNamingStrategy

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


joinTableName#

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

Parameters:#

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


propertyToColumnName#

propertyToColumnName(propertyName: string): string

Parameters:#

NameType
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


referenceColumnName#

referenceColumnName(): string

Returns: string

Overrides: AbstractNamingStrategy

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

Last updated on by dependabot[bot]