custom naming strategy

This commit is contained in:
francesco.spilla 2021-01-14 14:14:36 +01:00
parent 47663de08f
commit b1fdd92583

View File

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