rename field to name

This commit is contained in:
Peter Hormanns 2015-09-11 23:26:06 +02:00
parent f7a0389bc7
commit a147c4406a

View File

@ -28,7 +28,7 @@ public class INetAddress extends AbstractEntity implements Serializable {
private long id;
@Column(name = "inet_addr", unique = true, length=-1)
private String inetAddr;
private String name;
@Column(name = "description", columnDefinition = "character varying(100)")
private String description;
@ -37,7 +37,7 @@ public class INetAddress extends AbstractEntity implements Serializable {
}
public INetAddress(String inetAddr) {
this.inetAddr = inetAddr;
this.name = inetAddr;
}
public INetAddress(String inetAddr, String desc) {
@ -68,19 +68,19 @@ public class INetAddress extends AbstractEntity implements Serializable {
}
public String getInetAddr() {
return inetAddr;
return name;
}
public void setInetAddr(String inetAddr) {
this.inetAddr = inetAddr;
this.name = inetAddr;
}
public String getName() {
return inetAddr;
return name;
}
public void setName(String inetAddr) {
this.inetAddr = inetAddr;
this.name = inetAddr;
}
public String getDescription() {