diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-28 08:09:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-28 16:11:07 +1300 |
commit | 9120ff19ab2bdd466ae5c30632efd1917faa71b1 (patch) | |
tree | 7cbac795c7f2ec56a5e0ed0e474642a2113222dc /src/org/traccar/database/QueryBuilder.java | |
parent | 39452c3e0af164e6d63696afaf874c13c7ee8b5f (diff) | |
download | trackermap-server-9120ff19ab2bdd466ae5c30632efd1917faa71b1.tar.gz trackermap-server-9120ff19ab2bdd466ae5c30632efd1917faa71b1.tar.bz2 trackermap-server-9120ff19ab2bdd466ae5c30632efd1917faa71b1.zip |
Add separate QueryIgnore annotation (fix #2962)
Diffstat (limited to 'src/org/traccar/database/QueryBuilder.java')
-rw-r--r-- | src/org/traccar/database/QueryBuilder.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java index 83bc5de2e..a24e6f0bf 100644 --- a/src/org/traccar/database/QueryBuilder.java +++ b/src/org/traccar/database/QueryBuilder.java @@ -15,7 +15,6 @@ */ package org.traccar.database; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.JsonProcessingException; import org.traccar.Context; import org.traccar.helper.Log; @@ -262,7 +261,7 @@ public final class QueryBuilder { for (Method method : methods) { if (method.getName().startsWith("get") && method.getParameterTypes().length == 0 - && !method.isAnnotationPresent(JsonIgnore.class)) { + && !method.isAnnotationPresent(QueryIgnore.class)) { String name = method.getName().substring(3); try { if (method.getReturnType().equals(boolean.class)) { @@ -427,7 +426,7 @@ public final class QueryBuilder { for (final Method method : methods) { if (method.getName().startsWith("set") && method.getParameterTypes().length == 1 - && !method.isAnnotationPresent(JsonIgnore.class)) { + && !method.isAnnotationPresent(QueryIgnore.class)) { final String name = method.getName().substring(3); |