From be09bfc0365588ed782bd0cc344e939f8c10e083 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Tue, 18 Apr 2017 12:32:22 +0200 Subject: [PATCH] skip internaly generated proeprties --- .../java/de/hsadmin/service/property/PropertyService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/de/hsadmin/service/property/PropertyService.java b/framework/src/main/java/de/hsadmin/service/property/PropertyService.java index fff838d..beeb1c7 100644 --- a/framework/src/main/java/de/hsadmin/service/property/PropertyService.java +++ b/framework/src/main/java/de/hsadmin/service/property/PropertyService.java @@ -67,9 +67,13 @@ public class PropertyService extends AbstractModule implements Prope final ValueObject valueObject = serviceRemote.createValueObject(); final Field[] declaredFields = valueObject.getClass().getDeclaredFields(); for (Field f : declaredFields) { + final String fName = f.getName(); + if (fName.startsWith("$")) { + continue; + } final PropertyVO vo = buildVO(); vo.setModule(properyName); - vo.setName(f.getName()); + vo.setName(fName); final ReadWrite readWrite = f.getAnnotation(ReadWrite.class); if (readWrite == null) { vo.setReadwriteable(ReadWritePolicy.NONE.name().toLowerCase()); @@ -104,7 +108,7 @@ public class PropertyService extends AbstractModule implements Prope vo.setMinLength(size.min()); vo.setMaxLength(size.max()); } - vo.setType(printableTypeName(valueObject.get(f.getName()).getValueType())); + vo.setType(printableTypeName(valueObject.get(fName).getValueType())); emptyList.add(vo); } }