diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-24 15:42:23 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-24 15:42:23 -0700 |
commit | 2daec980de3183efbefc3e79a914a01dc6de910b (patch) | |
tree | 04d23f999fd007d53ca23dd5f3172062e3367136 /src/main/java | |
parent | eb39a38711c924ae0ecc7ad29ad69e74a95d92d8 (diff) | |
download | trackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.tar.gz trackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.tar.bz2 trackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.zip |
Improve query builder
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/storage/QueryBuilder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/storage/QueryBuilder.java b/src/main/java/org/traccar/storage/QueryBuilder.java index 910ebf170..a58ebe2b4 100644 --- a/src/main/java/org/traccar/storage/QueryBuilder.java +++ b/src/main/java/org/traccar/storage/QueryBuilder.java @@ -288,7 +288,8 @@ public final class QueryBuilder { Method[] methods = object.getClass().getMethods(); for (Method method : methods) { - if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) { + if (method.getName().startsWith("get") && method.getParameterTypes().length == 0 + && !method.getName().equals("getClass")) { String name = method.getName().substring(3); try { if (method.getReturnType().equals(boolean.class)) { |