From b1fdd925836f19d1e418a7835a9c7484ddac7d59 Mon Sep 17 00:00:00 2001 From: "francesco.spilla" Date: Thu, 14 Jan 2021 14:14:36 +0100 Subject: [PATCH] custom naming strategy --- src/NamingStrategy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NamingStrategy.ts b/src/NamingStrategy.ts index 44a6a53..7a64222 100644 --- a/src/NamingStrategy.ts +++ b/src/NamingStrategy.ts @@ -67,7 +67,7 @@ export function relationName(relation: Relation, owner?: Entity): string { } export function entityName(oldEntityName: string, entity?: Entity): string { - return oldEntityName; + return oldEntityName + "Entity"; } export function columnName(oldColumnName: string, column?: Column): string { @@ -75,5 +75,5 @@ export function columnName(oldColumnName: string, column?: Column): string { } export function fileName(oldFileName: string): string { - return oldFileName; + return oldFileName.replace("Entity", ".entity"); }