Skip to main content
Version: Next

Class: EntityCaseNamingStrategy

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


columnNameToProperty#

columnNameToProperty(columnName: string): string

Parameters#

NameType
columnNamestring

Returns: string

Inherited from: AbstractNamingStrategy

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


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


indexName#

indexName(tableName: string, columns: string[], type: "index" | "unique" | "primary" | "foreign" | "sequence"): string

Parameters#

NameType
tableNamestring
columnsstring[]
type"index" | "unique" | "primary" | "foreign" | "sequence"

Returns: string

Inherited from: AbstractNamingStrategy

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


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