From 4eddccadb9eb0fd14590d55766d2efdbc9152d6b Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 2 Aug 2017 14:33:08 +0500 Subject: Add comment --- src/org/traccar/database/DataManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 531d21817..ea90d4d67 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -267,6 +267,7 @@ public class DataManager { private static String getObjectsTableName(Class clazz) { String result = Introspector.decapitalize(clazz.getSimpleName()); + // Add "s" ending if object name is not plural already if (!result.endsWith("s")) { result += "s"; } -- cgit v1.2.3