diff --git a/pom.xml b/pom.xml index e956acf..8735843 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cz.foresttech ForestDatabase - 1.0.1 + 1.0.2 17 diff --git a/src/main/java/cz/foresttech/database/DatabaseEntityConvertor.java b/src/main/java/cz/foresttech/database/DatabaseEntityConvertor.java index bd1040a..46b1b17 100644 --- a/src/main/java/cz/foresttech/database/DatabaseEntityConvertor.java +++ b/src/main/java/cz/foresttech/database/DatabaseEntityConvertor.java @@ -438,7 +438,11 @@ private static String getTableName(Class clazz) { tableName = camelCaseToSnakeCase(clazz.getSimpleName()); } - return tableName; + if (tableName.isEmpty()) { + return tableName; + } + + return "\"" + tableName + "\""; } /**