add name property to inetaddr
This commit is contained in:
parent
4d437f2bef
commit
f7a0389bc7
@ -46,6 +46,7 @@ public class ReflectionUtil {
|
|||||||
} else
|
} else
|
||||||
if (valueObject instanceof AbstractEntity) {
|
if (valueObject instanceof AbstractEntity) {
|
||||||
Class<?> t = f.getType();
|
Class<?> t = f.getType();
|
||||||
|
System.out.println(t.getCanonicalName());
|
||||||
valueObject = invokeGetter((AbstractEntity) valueObject, t, t.getDeclaredField("name"));
|
valueObject = invokeGetter((AbstractEntity) valueObject, t, t.getDeclaredField("name"));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -75,6 +75,14 @@ public class INetAddress extends AbstractEntity implements Serializable {
|
|||||||
this.inetAddr = inetAddr;
|
this.inetAddr = inetAddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return inetAddr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String inetAddr) {
|
||||||
|
this.inetAddr = inetAddr;
|
||||||
|
}
|
||||||
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user