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"); }