add name property to inetaddr

This commit is contained in:
Peter Hormanns 2015-09-11 23:19:38 +02:00
parent 4d437f2bef
commit f7a0389bc7
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class ReflectionUtil {
} else
if (valueObject instanceof AbstractEntity) {
Class<?> t = f.getType();
System.out.println(t.getCanonicalName());
valueObject = invokeGetter((AbstractEntity) valueObject, t, t.getDeclaredField("name"));
}
} catch (Exception e) {

View File

@ -75,6 +75,14 @@ public class INetAddress extends AbstractEntity implements Serializable {
this.inetAddr = inetAddr;
}
public String getName() {
return inetAddr;
}
public void setName(String inetAddr) {
this.inetAddr = inetAddr;
}
public String getDescription() {
return description;
}