From f7a0389bc75bc7e33c4af2556fe0a782a00d5462 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 11 Sep 2015 23:19:38 +0200 Subject: [PATCH] add name property to inetaddr --- hsarback/src/de/hsadmin/core/util/ReflectionUtil.java | 1 + hsarback/src/de/hsadmin/mods/pac/INetAddress.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/hsarback/src/de/hsadmin/core/util/ReflectionUtil.java b/hsarback/src/de/hsadmin/core/util/ReflectionUtil.java index 5f86d88..4209e96 100644 --- a/hsarback/src/de/hsadmin/core/util/ReflectionUtil.java +++ b/hsarback/src/de/hsadmin/core/util/ReflectionUtil.java @@ -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) { diff --git a/hsarback/src/de/hsadmin/mods/pac/INetAddress.java b/hsarback/src/de/hsadmin/mods/pac/INetAddress.java index 6cb784b..e74d398 100644 --- a/hsarback/src/de/hsadmin/mods/pac/INetAddress.java +++ b/hsarback/src/de/hsadmin/mods/pac/INetAddress.java @@ -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; }