diff --git a/src/main/java/com/loafle/bridge/discoveryhost/DiscoveryHost.java b/src/main/java/com/loafle/bridge/discoveryhost/DiscoveryHost.java index 289c176..4d8859a 100644 --- a/src/main/java/com/loafle/bridge/discoveryhost/DiscoveryHost.java +++ b/src/main/java/com/loafle/bridge/discoveryhost/DiscoveryHost.java @@ -17,11 +17,11 @@ public class DiscoveryHost { @GeneratedValue(strategy = GenerationType.AUTO) private long id; - @Column(name = "IP_ADDRESS",nullable = false) - private long ipAddress; + @Column(name = "IP",nullable = false) + private long ip; - @Column(name = "MAC_ADDRESS",nullable = false) - private long macAddress; + @Column(name = "MAC",nullable = false) + private long mac; @ManyToOne @JoinColumn(name = "ZONE_ID", nullable = false) @@ -66,8 +66,8 @@ public class DiscoveryHost { public DiscoveryHost(){} public DiscoveryHost(long ip, long mac){ - this.ipAddress = ip; - this.macAddress = mac; + this.ip = ip; + this.mac = mac; } public long getId() { @@ -78,24 +78,22 @@ public class DiscoveryHost { this.id = id; } - public long getIpAddress() { - return ipAddress; + public long getIp() { + return ip; } - public void setIpAddress(long ipAddress) { - this.ipAddress = ipAddress; + public void setIp(long ip) { + this.ip = ip; } - public long getMacAddress() { - return macAddress; + public long getMac() { + return mac; } - public void setMacAddress(long macAddress) { - this.macAddress = macAddress; + public void setMac(long mac) { + this.mac = mac; } - - public Date getCreateDate() { return createDate; }