skip internaly generated proeprties

This commit is contained in:
Peter Hormanns 2017-04-18 12:32:22 +02:00
parent d0c617b70e
commit 726058c75d

View File

@ -67,9 +67,13 @@ public class PropertyService extends AbstractModule<PropertyVO> 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<PropertyVO> 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);
}
}