From 36f28b4ecbb645e9c7072af6932dc7fc65fd66c3 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 12 Apr 2021 16:46:50 +0200 Subject: [PATCH] changed the table names convection --- .../gcube/accounting/utility/postgresql/RecordToDBFields.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/accounting/utility/postgresql/RecordToDBFields.java b/src/main/java/org/gcube/accounting/utility/postgresql/RecordToDBFields.java index d3bda65..1beb84f 100644 --- a/src/main/java/org/gcube/accounting/utility/postgresql/RecordToDBFields.java +++ b/src/main/java/org/gcube/accounting/utility/postgresql/RecordToDBFields.java @@ -11,7 +11,7 @@ public class RecordToDBFields { public static String getKey(String fieldName) { StringBuffer stringBuffer = new StringBuffer(); int lenght = fieldName.length(); - boolean lastLowerCase = true; + boolean lastLowerCase = false; for (int i=0; i clz) throws Exception { this.clz = clz; this.typeName = typeName; - this.tableName = typeName.toLowerCase(); + this.tableName = RecordToDBFields.getKey(typeName); this.tableFieldToRecordField = new HashMap<>(); this.recordFieldToTableField = new HashMap<>(); mapFields();