add generate models

This commit is contained in:
snoop 2017-06-22 17:05:03 +09:00
parent 8101c9cdbc
commit 109437eb93
37 changed files with 3383 additions and 0 deletions

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_API_KEY", schema = "public", catalog = "postgres")
public class TblApiKey {
private long id;
private String apiKey;
private Timestamp createDate;
private long domainId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "API_KEY", nullable = false, length = 50)
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "DOMAIN_ID", nullable = false)
public long getDomainId() {
return domainId;
}
public void setDomainId(long domainId) {
this.domainId = domainId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblApiKey tblApiKey = (TblApiKey) o;
if (id != tblApiKey.id) return false;
if (domainId != tblApiKey.domainId) return false;
if (apiKey != null ? !apiKey.equals(tblApiKey.apiKey) : tblApiKey.apiKey != null) return false;
if (createDate != null ? !createDate.equals(tblApiKey.createDate) : tblApiKey.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (int) (domainId ^ (domainId >>> 32));
return result;
}
}

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_DOMAIN", schema = "public", catalog = "postgres")
public class TblDomain {
private long id;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblDomain tblDomain = (TblDomain) o;
if (id != tblDomain.id) return false;
if (name != null ? !name.equals(tblDomain.name) : tblDomain.name != null) return false;
if (createDate != null ? !createDate.equals(tblDomain.createDate) : tblDomain.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,54 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_DOMAIN_MEMBER", schema = "public", catalog = "postgres")
public class TblDomainMember {
private long id;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblDomainMember that = (TblDomainMember) o;
if (id != that.id) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,94 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_EMAIL_AUTH", schema = "public", catalog = "postgres")
public class TblEmailAuth {
private long id;
private String emailAuthKey;
private Timestamp createDate;
private Timestamp authConfirmDate;
private long memberId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "EMAIL_AUTH_KEY", nullable = true, length = 50)
public String getEmailAuthKey() {
return emailAuthKey;
}
public void setEmailAuthKey(String emailAuthKey) {
this.emailAuthKey = emailAuthKey;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "AUTH_CONFIRM_DATE", nullable = true)
public Timestamp getAuthConfirmDate() {
return authConfirmDate;
}
public void setAuthConfirmDate(Timestamp authConfirmDate) {
this.authConfirmDate = authConfirmDate;
}
@Basic
@Column(name = "MEMBER_ID", nullable = false)
public long getMemberId() {
return memberId;
}
public void setMemberId(long memberId) {
this.memberId = memberId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblEmailAuth that = (TblEmailAuth) o;
if (id != that.id) return false;
if (memberId != that.memberId) return false;
if (emailAuthKey != null ? !emailAuthKey.equals(that.emailAuthKey) : that.emailAuthKey != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (authConfirmDate != null ? !authConfirmDate.equals(that.authConfirmDate) : that.authConfirmDate != null)
return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (emailAuthKey != null ? emailAuthKey.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (authConfirmDate != null ? authConfirmDate.hashCode() : 0);
result = 31 * result + (int) (memberId ^ (memberId >>> 32));
return result;
}
}

View File

@ -0,0 +1,54 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_HISTORY", schema = "public", catalog = "postgres")
public class TblHistory {
private long id;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblHistory that = (TblHistory) o;
if (id != that.id) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA", schema = "public", catalog = "postgres")
public class TblInfra {
private long id;
private int typeId;
private long childId;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "TYPE_ID", nullable = false)
public int getTypeId() {
return typeId;
}
public void setTypeId(int typeId) {
this.typeId = typeId;
}
@Basic
@Column(name = "CHILD_ID", nullable = false)
public long getChildId() {
return childId;
}
public void setChildId(long childId) {
this.childId = childId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfra tblInfra = (TblInfra) o;
if (id != tblInfra.id) return false;
if (typeId != tblInfra.typeId) return false;
if (childId != tblInfra.childId) return false;
if (createDate != null ? !createDate.equals(tblInfra.createDate) : tblInfra.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + typeId;
result = 31 * result + (int) (childId ^ (childId >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,93 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_HOST", schema = "public", catalog = "postgres")
public class TblInfraHost {
private long id;
private long osId;
private int ip;
private int mac;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "OS_ID", nullable = false)
public long getOsId() {
return osId;
}
public void setOsId(long osId) {
this.osId = osId;
}
@Basic
@Column(name = "IP", nullable = false)
public int getIp() {
return ip;
}
public void setIp(int ip) {
this.ip = ip;
}
@Basic
@Column(name = "MAC", nullable = false)
public int getMac() {
return mac;
}
public void setMac(int mac) {
this.mac = mac;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraHost that = (TblInfraHost) o;
if (id != that.id) return false;
if (osId != that.osId) return false;
if (ip != that.ip) return false;
if (mac != that.mac) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (osId ^ (osId >>> 32));
result = 31 * result + ip;
result = 31 * result + mac;
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_MACHINE", schema = "public", catalog = "postgres")
public class TblInfraMachine {
private long id;
private long probeId;
private String meta;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "PROBE_ID", nullable = false)
public long getProbeId() {
return probeId;
}
public void setProbeId(long probeId) {
this.probeId = probeId;
}
@Basic
@Column(name = "META", nullable = true, length = 255)
public String getMeta() {
return meta;
}
public void setMeta(String meta) {
this.meta = meta;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraMachine that = (TblInfraMachine) o;
if (id != that.id) return false;
if (probeId != that.probeId) return false;
if (meta != null ? !meta.equals(that.meta) : that.meta != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (probeId ^ (probeId >>> 32));
result = 31 * result + (meta != null ? meta.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,93 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_OS", schema = "public", catalog = "postgres")
public class TblInfraOs {
private long id;
private long machineId;
private String meta;
private Timestamp createDate;
private int vendorId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "MACHINE_ID", nullable = false)
public long getMachineId() {
return machineId;
}
public void setMachineId(long machineId) {
this.machineId = machineId;
}
@Basic
@Column(name = "META", nullable = true, length = 255)
public String getMeta() {
return meta;
}
public void setMeta(String meta) {
this.meta = meta;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "VENDOR_ID", nullable = false)
public int getVendorId() {
return vendorId;
}
public void setVendorId(int vendorId) {
this.vendorId = vendorId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraOs that = (TblInfraOs) o;
if (id != that.id) return false;
if (machineId != that.machineId) return false;
if (vendorId != that.vendorId) return false;
if (meta != null ? !meta.equals(that.meta) : that.meta != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (machineId ^ (machineId >>> 32));
result = 31 * result + (meta != null ? meta.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + vendorId;
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_OS_APPLICATION", schema = "public", catalog = "postgres")
public class TblInfraOsApplication {
private long id;
private long osId;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "OS_ID", nullable = false)
public long getOsId() {
return osId;
}
public void setOsId(long osId) {
this.osId = osId;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraOsApplication that = (TblInfraOsApplication) o;
if (id != that.id) return false;
if (osId != that.osId) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (osId ^ (osId >>> 32));
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_OS_DAEMON", schema = "public", catalog = "postgres")
public class TblInfraOsDaemon {
private long id;
private long osId;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "OS_ID", nullable = false)
public long getOsId() {
return osId;
}
public void setOsId(long osId) {
this.osId = osId;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraOsDaemon that = (TblInfraOsDaemon) o;
if (id != that.id) return false;
if (osId != that.osId) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (osId ^ (osId >>> 32));
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,119 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_OS_PORT", schema = "public", catalog = "postgres")
public class TblInfraOsPort {
private long id;
private long osId;
private Timestamp createDate;
private Integer port;
private String portType;
private Integer vendorId;
private boolean tlsType;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "OS_ID", nullable = false)
public long getOsId() {
return osId;
}
public void setOsId(long osId) {
this.osId = osId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "PORT", nullable = true)
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
@Basic
@Column(name = "PORT_TYPE", nullable = false, length = -1)
public String getPortType() {
return portType;
}
public void setPortType(String portType) {
this.portType = portType;
}
@Basic
@Column(name = "VENDOR_ID", nullable = true)
public Integer getVendorId() {
return vendorId;
}
public void setVendorId(Integer vendorId) {
this.vendorId = vendorId;
}
@Basic
@Column(name = "TLS_TYPE", nullable = false)
public boolean isTlsType() {
return tlsType;
}
public void setTlsType(boolean tlsType) {
this.tlsType = tlsType;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraOsPort that = (TblInfraOsPort) o;
if (id != that.id) return false;
if (osId != that.osId) return false;
if (tlsType != that.tlsType) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (port != null ? !port.equals(that.port) : that.port != null) return false;
if (portType != null ? !portType.equals(that.portType) : that.portType != null) return false;
if (vendorId != null ? !vendorId.equals(that.vendorId) : that.vendorId != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (osId ^ (osId >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (port != null ? port.hashCode() : 0);
result = 31 * result + (portType != null ? portType.hashCode() : 0);
result = 31 * result + (vendorId != null ? vendorId.hashCode() : 0);
result = 31 * result + (tlsType ? 1 : 0);
return result;
}
}

View File

@ -0,0 +1,119 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_INFRA_SERVICE", schema = "public", catalog = "postgres")
public class TblInfraService {
private long id;
private long hostId;
private String portType;
private Integer port;
private int vendorId;
private Timestamp createDate;
private boolean tlsType;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "HOST_ID", nullable = false)
public long getHostId() {
return hostId;
}
public void setHostId(long hostId) {
this.hostId = hostId;
}
@Basic
@Column(name = "PORT_TYPE", nullable = false, length = -1)
public String getPortType() {
return portType;
}
public void setPortType(String portType) {
this.portType = portType;
}
@Basic
@Column(name = "PORT", nullable = true)
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
@Basic
@Column(name = "VENDOR_ID", nullable = false)
public int getVendorId() {
return vendorId;
}
public void setVendorId(int vendorId) {
this.vendorId = vendorId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "TLS_TYPE", nullable = false)
public boolean isTlsType() {
return tlsType;
}
public void setTlsType(boolean tlsType) {
this.tlsType = tlsType;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblInfraService that = (TblInfraService) o;
if (id != that.id) return false;
if (hostId != that.hostId) return false;
if (vendorId != that.vendorId) return false;
if (tlsType != that.tlsType) return false;
if (portType != null ? !portType.equals(that.portType) : that.portType != null) return false;
if (port != null ? !port.equals(that.port) : that.port != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (hostId ^ (hostId >>> 32));
result = 31 * result + (portType != null ? portType.hashCode() : 0);
result = 31 * result + (port != null ? port.hashCode() : 0);
result = 31 * result + vendorId;
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (tlsType ? 1 : 0);
return result;
}
}

View File

@ -0,0 +1,146 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_MEMBER", schema = "public", catalog = "postgres")
public class TblMember {
private long id;
private String email;
private String pw;
private String pwSalt;
private String name;
private String phone;
private String companyName;
private Timestamp createDate;
private short statusId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "EMAIL", nullable = false, length = 50)
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Basic
@Column(name = "PW", nullable = true, length = 32)
public String getPw() {
return pw;
}
public void setPw(String pw) {
this.pw = pw;
}
@Basic
@Column(name = "PW_SALT", nullable = true, length = 32)
public String getPwSalt() {
return pwSalt;
}
public void setPwSalt(String pwSalt) {
this.pwSalt = pwSalt;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "PHONE", nullable = true, length = 50)
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Basic
@Column(name = "COMPANY_NAME", nullable = true, length = 50)
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "STATUS_ID", nullable = false)
public short getStatusId() {
return statusId;
}
public void setStatusId(short statusId) {
this.statusId = statusId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMember tblMember = (TblMember) o;
if (id != tblMember.id) return false;
if (statusId != tblMember.statusId) return false;
if (email != null ? !email.equals(tblMember.email) : tblMember.email != null) return false;
if (pw != null ? !pw.equals(tblMember.pw) : tblMember.pw != null) return false;
if (pwSalt != null ? !pwSalt.equals(tblMember.pwSalt) : tblMember.pwSalt != null) return false;
if (name != null ? !name.equals(tblMember.name) : tblMember.name != null) return false;
if (phone != null ? !phone.equals(tblMember.phone) : tblMember.phone != null) return false;
if (companyName != null ? !companyName.equals(tblMember.companyName) : tblMember.companyName != null)
return false;
if (createDate != null ? !createDate.equals(tblMember.createDate) : tblMember.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (email != null ? email.hashCode() : 0);
result = 31 * result + (pw != null ? pw.hashCode() : 0);
result = 31 * result + (pwSalt != null ? pwSalt.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (phone != null ? phone.hashCode() : 0);
result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (int) statusId;
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_CRAWLER", schema = "public", catalog = "postgres")
public class TblMetaCrawler {
private short id;
private Timestamp createDate;
private String name;
private String desc;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "DESC", nullable = true, length = 100)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaCrawler that = (TblMetaCrawler) o;
if (id != that.id) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (desc != null ? desc.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,171 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_CRAWLER_INPUT_ITEM", schema = "public", catalog = "postgres")
public class TblMetaCrawlerInputItem {
private int id;
private short typeId;
private short crawlerId;
private String desc;
private String name;
private Timestamp createDate;
private boolean required;
private String defaultValue;
private String pattern;
private String keyName;
private String keyValue;
@Id
@Column(name = "ID", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "TYPE_ID", nullable = false)
public short getTypeId() {
return typeId;
}
public void setTypeId(short typeId) {
this.typeId = typeId;
}
@Basic
@Column(name = "CRAWLER_ID", nullable = false)
public short getCrawlerId() {
return crawlerId;
}
public void setCrawlerId(short crawlerId) {
this.crawlerId = crawlerId;
}
@Basic
@Column(name = "DESC", nullable = true, length = 50)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "REQUIRED", nullable = false)
public boolean isRequired() {
return required;
}
public void setRequired(boolean required) {
this.required = required;
}
@Basic
@Column(name = "DEFAULT_VALUE", nullable = true, length = 50)
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
@Basic
@Column(name = "PATTERN", nullable = true, length = 50)
public String getPattern() {
return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
@Basic
@Column(name = "KEY_NAME", nullable = true, length = 50)
public String getKeyName() {
return keyName;
}
public void setKeyName(String keyName) {
this.keyName = keyName;
}
@Basic
@Column(name = "KEY_VALUE", nullable = true, length = 50)
public String getKeyValue() {
return keyValue;
}
public void setKeyValue(String keyValue) {
this.keyValue = keyValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaCrawlerInputItem that = (TblMetaCrawlerInputItem) o;
if (id != that.id) return false;
if (typeId != that.typeId) return false;
if (crawlerId != that.crawlerId) return false;
if (required != that.required) return false;
if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (defaultValue != null ? !defaultValue.equals(that.defaultValue) : that.defaultValue != null) return false;
if (pattern != null ? !pattern.equals(that.pattern) : that.pattern != null) return false;
if (keyName != null ? !keyName.equals(that.keyName) : that.keyName != null) return false;
if (keyValue != null ? !keyValue.equals(that.keyValue) : that.keyValue != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (int) typeId;
result = 31 * result + (int) crawlerId;
result = 31 * result + (desc != null ? desc.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (required ? 1 : 0);
result = 31 * result + (defaultValue != null ? defaultValue.hashCode() : 0);
result = 31 * result + (pattern != null ? pattern.hashCode() : 0);
result = 31 * result + (keyName != null ? keyName.hashCode() : 0);
result = 31 * result + (keyValue != null ? keyValue.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_INFRA_TYPE", schema = "public", catalog = "postgres")
public class TblMetaInfraType {
private int id;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaInfraType that = (TblMetaInfraType) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_INFRA_VENDOR", schema = "public", catalog = "postgres")
public class TblMetaInfraVendor {
private int id;
private String name;
private Timestamp createDate;
private int typeId;
@Id
@Column(name = "ID", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "TYPE_ID", nullable = false)
public int getTypeId() {
return typeId;
}
public void setTypeId(int typeId) {
this.typeId = typeId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaInfraVendor that = (TblMetaInfraVendor) o;
if (id != that.id) return false;
if (typeId != that.typeId) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + typeId;
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_INPUT_TYPE", schema = "public", catalog = "postgres")
public class TblMetaInputType {
private short id;
private String name;
private String desc;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "DESC", nullable = true, length = 50)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaInputType that = (TblMetaInputType) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (desc != null ? desc.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,53 @@
package com.loafle.overflow.models;
import javax.persistence.*;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_MEMBER_STATUS", schema = "public", catalog = "postgres")
public class TblMetaMemberStatus {
private short id;
private String name;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "Name", nullable = false, length = 10)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaMemberStatus that = (TblMetaMemberStatus) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (name != null ? name.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_NOTIFICATION", schema = "public", catalog = "postgres")
public class TblMetaNotification {
private long id;
private Timestamp createDate;
private String name;
private String description;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "DESCRIPTION", nullable = true, length = 50)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaNotification that = (TblMetaNotification) o;
if (id != that.id) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (description != null ? !description.equals(that.description) : that.description != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (description != null ? description.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_PROBE_ARCHITECTURE", schema = "public", catalog = "postgres")
public class TblMetaProbeArchitecture {
private short id;
private String archi;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "ARCHI", nullable = true, length = 10)
public String getArchi() {
return archi;
}
public void setArchi(String archi) {
this.archi = archi;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaProbeArchitecture that = (TblMetaProbeArchitecture) o;
if (id != that.id) return false;
if (archi != null ? !archi.equals(that.archi) : that.archi != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (archi != null ? archi.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_PROBE_OS", schema = "public", catalog = "postgres")
public class TblMetaProbeOs {
private short id;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaProbeOs that = (TblMetaProbeOs) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,93 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_PROBE_PACKAGE", schema = "public", catalog = "postgres")
public class TblMetaProbePackage {
private long id;
private short versionId;
private short osId;
private short architectureId;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "VERSION_ID", nullable = false)
public short getVersionId() {
return versionId;
}
public void setVersionId(short versionId) {
this.versionId = versionId;
}
@Basic
@Column(name = "OS_ID", nullable = false)
public short getOsId() {
return osId;
}
public void setOsId(short osId) {
this.osId = osId;
}
@Basic
@Column(name = "ARCHITECTURE_ID", nullable = false)
public short getArchitectureId() {
return architectureId;
}
public void setArchitectureId(short architectureId) {
this.architectureId = architectureId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaProbePackage that = (TblMetaProbePackage) o;
if (id != that.id) return false;
if (versionId != that.versionId) return false;
if (osId != that.osId) return false;
if (architectureId != that.architectureId) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) versionId;
result = 31 * result + (int) osId;
result = 31 * result + (int) architectureId;
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_PROBE_TASK_TYPE", schema = "public", catalog = "postgres")
public class TblMetaProbeTaskType {
private short id;
private String name;
private String desc;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = false, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "DESC", nullable = false, length = 50)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaProbeTaskType that = (TblMetaProbeTaskType) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (desc != null ? desc.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,67 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_PROBE_VERSION", schema = "public", catalog = "postgres")
public class TblMetaProbeVersion {
private short id;
private String version;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "VERSION", nullable = true, length = 10)
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaProbeVersion that = (TblMetaProbeVersion) o;
if (id != that.id) return false;
if (version != null ? !version.equals(that.version) : that.version != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (version != null ? version.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,93 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_SENSOR_ITEM", schema = "public", catalog = "postgres")
public class TblMetaSensorItem {
private int id;
private short typeId;
private String key;
private String name;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "TYPE_ID", nullable = false)
public short getTypeId() {
return typeId;
}
public void setTypeId(short typeId) {
this.typeId = typeId;
}
@Basic
@Column(name = "KEY", nullable = true, length = 50)
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaSensorItem that = (TblMetaSensorItem) o;
if (id != that.id) return false;
if (typeId != that.typeId) return false;
if (key != null ? !key.equals(that.key) : that.key != null) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (int) typeId;
result = 31 * result + (key != null ? key.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_SENSOR_ITEM_TYPE", schema = "public", catalog = "postgres")
public class TblMetaSensorItemType {
private short id;
private String name;
private String desc;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public short getId() {
return id;
}
public void setId(short id) {
this.id = id;
}
@Basic
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "DESC", nullable = true, length = 50)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaSensorItemType that = (TblMetaSensorItemType) o;
if (id != that.id) return false;
if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) id;
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (desc != null ? desc.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_VENDOR_CRAWLER", schema = "public", catalog = "postgres")
public class TblMetaVendorCrawler {
private int id;
private short crawlerId;
private int vendorId;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Basic
@Column(name = "CRAWLER_ID", nullable = false)
public short getCrawlerId() {
return crawlerId;
}
public void setCrawlerId(short crawlerId) {
this.crawlerId = crawlerId;
}
@Basic
@Column(name = "VENDOR_ID", nullable = false)
public int getVendorId() {
return vendorId;
}
public void setVendorId(int vendorId) {
this.vendorId = vendorId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaVendorCrawler that = (TblMetaVendorCrawler) o;
if (id != that.id) return false;
if (crawlerId != that.crawlerId) return false;
if (vendorId != that.vendorId) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = id;
result = 31 * result + (int) crawlerId;
result = 31 * result + vendorId;
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,120 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public", catalog = "postgres")
public class TblMetaVendorCrawlerSensorItem {
private long id;
private String interval;
private String warnCondition;
private Timestamp createDate;
private int itemId;
private int vendorId;
private short crawlerId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "INTERVAL", nullable = true, length = 50)
public String getInterval() {
return interval;
}
public void setInterval(String interval) {
this.interval = interval;
}
@Basic
@Column(name = "WARN_CONDITION", nullable = true, length = 50)
public String getWarnCondition() {
return warnCondition;
}
public void setWarnCondition(String warnCondition) {
this.warnCondition = warnCondition;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "ITEM_ID", nullable = false)
public int getItemId() {
return itemId;
}
public void setItemId(int itemId) {
this.itemId = itemId;
}
@Basic
@Column(name = "VENDOR_ID", nullable = false)
public int getVendorId() {
return vendorId;
}
public void setVendorId(int vendorId) {
this.vendorId = vendorId;
}
@Basic
@Column(name = "CRAWLER_ID", nullable = false)
public short getCrawlerId() {
return crawlerId;
}
public void setCrawlerId(short crawlerId) {
this.crawlerId = crawlerId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblMetaVendorCrawlerSensorItem that = (TblMetaVendorCrawlerSensorItem) o;
if (id != that.id) return false;
if (itemId != that.itemId) return false;
if (vendorId != that.vendorId) return false;
if (crawlerId != that.crawlerId) return false;
if (interval != null ? !interval.equals(that.interval) : that.interval != null) return false;
if (warnCondition != null ? !warnCondition.equals(that.warnCondition) : that.warnCondition != null)
return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (interval != null ? interval.hashCode() : 0);
result = 31 * result + (warnCondition != null ? warnCondition.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + itemId;
result = 31 * result + vendorId;
result = 31 * result + (int) crawlerId;
return result;
}
}

View File

@ -0,0 +1,158 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_NOAUTH_PROBE", schema = "public", catalog = "postgres")
public class TblNoauthProbe {
private long id;
private String hostName;
private Integer macAddress;
private Integer ipAddress;
private String status;
private String tempProbeKey;
private Timestamp createDate;
private String apiKey;
private long domainId;
private Long probeId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "HOST_NAME", nullable = true, length = 50)
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
@Basic
@Column(name = "MAC_ADDRESS", nullable = true)
public Integer getMacAddress() {
return macAddress;
}
public void setMacAddress(Integer macAddress) {
this.macAddress = macAddress;
}
@Basic
@Column(name = "IP_ADDRESS", nullable = true)
public Integer getIpAddress() {
return ipAddress;
}
public void setIpAddress(Integer ipAddress) {
this.ipAddress = ipAddress;
}
@Basic
@Column(name = "STATUS", nullable = false, length = -1)
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Basic
@Column(name = "TEMP_PROBE_KEY", nullable = true, length = 50)
public String getTempProbeKey() {
return tempProbeKey;
}
public void setTempProbeKey(String tempProbeKey) {
this.tempProbeKey = tempProbeKey;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "API_KEY", nullable = true, length = 50)
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
@Basic
@Column(name = "DOMAIN_ID", nullable = false)
public long getDomainId() {
return domainId;
}
public void setDomainId(long domainId) {
this.domainId = domainId;
}
@Basic
@Column(name = "PROBE_ID", nullable = true)
public Long getProbeId() {
return probeId;
}
public void setProbeId(Long probeId) {
this.probeId = probeId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblNoauthProbe that = (TblNoauthProbe) o;
if (id != that.id) return false;
if (domainId != that.domainId) return false;
if (hostName != null ? !hostName.equals(that.hostName) : that.hostName != null) return false;
if (macAddress != null ? !macAddress.equals(that.macAddress) : that.macAddress != null) return false;
if (ipAddress != null ? !ipAddress.equals(that.ipAddress) : that.ipAddress != null) return false;
if (status != null ? !status.equals(that.status) : that.status != null) return false;
if (tempProbeKey != null ? !tempProbeKey.equals(that.tempProbeKey) : that.tempProbeKey != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (apiKey != null ? !apiKey.equals(that.apiKey) : that.apiKey != null) return false;
if (probeId != null ? !probeId.equals(that.probeId) : that.probeId != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (hostName != null ? hostName.hashCode() : 0);
result = 31 * result + (macAddress != null ? macAddress.hashCode() : 0);
result = 31 * result + (ipAddress != null ? ipAddress.hashCode() : 0);
result = 31 * result + (status != null ? status.hashCode() : 0);
result = 31 * result + (tempProbeKey != null ? tempProbeKey.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0);
result = 31 * result + (int) (domainId ^ (domainId >>> 32));
result = 31 * result + (probeId != null ? probeId.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,149 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_PROBE", schema = "public", catalog = "postgres")
public class TblProbe {
private long id;
private String status;
private String description;
private Timestamp createDate;
private Timestamp lastPollingDate;
private Timestamp nextPollingDate;
private long domainId;
private String probeKey;
private String encryptionKey;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "STATUS", nullable = true, length = -1)
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Basic
@Column(name = "DESCRIPTION", nullable = true, length = 50)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "LAST_POLLING_DATE", nullable = true)
public Timestamp getLastPollingDate() {
return lastPollingDate;
}
public void setLastPollingDate(Timestamp lastPollingDate) {
this.lastPollingDate = lastPollingDate;
}
@Basic
@Column(name = "NEXT_POLLING_DATE", nullable = true)
public Timestamp getNextPollingDate() {
return nextPollingDate;
}
public void setNextPollingDate(Timestamp nextPollingDate) {
this.nextPollingDate = nextPollingDate;
}
@Basic
@Column(name = "DOMAIN_ID", nullable = false)
public long getDomainId() {
return domainId;
}
public void setDomainId(long domainId) {
this.domainId = domainId;
}
@Basic
@Column(name = "PROBE_KEY", nullable = false, length = 50)
public String getProbeKey() {
return probeKey;
}
public void setProbeKey(String probeKey) {
this.probeKey = probeKey;
}
@Basic
@Column(name = "ENCRYPTION_KEY", nullable = false, length = 50)
public String getEncryptionKey() {
return encryptionKey;
}
public void setEncryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblProbe tblProbe = (TblProbe) o;
if (id != tblProbe.id) return false;
if (domainId != tblProbe.domainId) return false;
if (status != null ? !status.equals(tblProbe.status) : tblProbe.status != null) return false;
if (description != null ? !description.equals(tblProbe.description) : tblProbe.description != null)
return false;
if (createDate != null ? !createDate.equals(tblProbe.createDate) : tblProbe.createDate != null) return false;
if (lastPollingDate != null ? !lastPollingDate.equals(tblProbe.lastPollingDate) : tblProbe.lastPollingDate != null)
return false;
if (nextPollingDate != null ? !nextPollingDate.equals(tblProbe.nextPollingDate) : tblProbe.nextPollingDate != null)
return false;
if (probeKey != null ? !probeKey.equals(tblProbe.probeKey) : tblProbe.probeKey != null) return false;
if (encryptionKey != null ? !encryptionKey.equals(tblProbe.encryptionKey) : tblProbe.encryptionKey != null)
return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (status != null ? status.hashCode() : 0);
result = 31 * result + (description != null ? description.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (lastPollingDate != null ? lastPollingDate.hashCode() : 0);
result = 31 * result + (nextPollingDate != null ? nextPollingDate.hashCode() : 0);
result = 31 * result + (int) (domainId ^ (domainId >>> 32));
result = 31 * result + (probeKey != null ? probeKey.hashCode() : 0);
result = 31 * result + (encryptionKey != null ? encryptionKey.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,145 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_PROBE_TASK", schema = "public", catalog = "postgres")
public class TblProbeTask {
private long id;
private short typeId;
private long probeId;
private String data;
private Timestamp createDate;
private Timestamp sendDate;
private Timestamp startDate;
private Timestamp endDate;
private Boolean succeed;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "TYPE_ID", nullable = false)
public short getTypeId() {
return typeId;
}
public void setTypeId(short typeId) {
this.typeId = typeId;
}
@Basic
@Column(name = "PROBE_ID", nullable = false)
public long getProbeId() {
return probeId;
}
public void setProbeId(long probeId) {
this.probeId = probeId;
}
@Basic
@Column(name = "DATA", nullable = true, length = 255)
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "SEND_DATE", nullable = true)
public Timestamp getSendDate() {
return sendDate;
}
public void setSendDate(Timestamp sendDate) {
this.sendDate = sendDate;
}
@Basic
@Column(name = "START_DATE", nullable = true)
public Timestamp getStartDate() {
return startDate;
}
public void setStartDate(Timestamp startDate) {
this.startDate = startDate;
}
@Basic
@Column(name = "END_DATE", nullable = true)
public Timestamp getEndDate() {
return endDate;
}
public void setEndDate(Timestamp endDate) {
this.endDate = endDate;
}
@Basic
@Column(name = "SUCCEED", nullable = true)
public Boolean getSucceed() {
return succeed;
}
public void setSucceed(Boolean succeed) {
this.succeed = succeed;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblProbeTask that = (TblProbeTask) o;
if (id != that.id) return false;
if (typeId != that.typeId) return false;
if (probeId != that.probeId) return false;
if (data != null ? !data.equals(that.data) : that.data != null) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
if (sendDate != null ? !sendDate.equals(that.sendDate) : that.sendDate != null) return false;
if (startDate != null ? !startDate.equals(that.startDate) : that.startDate != null) return false;
if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != null) return false;
if (succeed != null ? !succeed.equals(that.succeed) : that.succeed != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) typeId;
result = 31 * result + (int) (probeId ^ (probeId >>> 32));
result = 31 * result + (data != null ? data.hashCode() : 0);
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (sendDate != null ? sendDate.hashCode() : 0);
result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
result = 31 * result + (succeed != null ? succeed.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,120 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_SENSOR", schema = "public", catalog = "postgres")
public class TblSensor {
private long id;
private Timestamp createDate;
private String desc;
private String status;
private long targetId;
private short crawlerId;
private String crawelrInputItems;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "DESC", nullable = true, length = 50)
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
@Basic
@Column(name = "STATUS", nullable = true, length = 50)
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
@Basic
@Column(name = "TARGET_ID", nullable = false)
public long getTargetId() {
return targetId;
}
public void setTargetId(long targetId) {
this.targetId = targetId;
}
@Basic
@Column(name = "CRAWLER_ID", nullable = false)
public short getCrawlerId() {
return crawlerId;
}
public void setCrawlerId(short crawlerId) {
this.crawlerId = crawlerId;
}
@Basic
@Column(name = "CRAWELR_INPUT_ITEMS", nullable = true, length = 50)
public String getCrawelrInputItems() {
return crawelrInputItems;
}
public void setCrawelrInputItems(String crawelrInputItems) {
this.crawelrInputItems = crawelrInputItems;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblSensor tblSensor = (TblSensor) o;
if (id != tblSensor.id) return false;
if (targetId != tblSensor.targetId) return false;
if (crawlerId != tblSensor.crawlerId) return false;
if (createDate != null ? !createDate.equals(tblSensor.createDate) : tblSensor.createDate != null) return false;
if (desc != null ? !desc.equals(tblSensor.desc) : tblSensor.desc != null) return false;
if (status != null ? !status.equals(tblSensor.status) : tblSensor.status != null) return false;
if (crawelrInputItems != null ? !crawelrInputItems.equals(tblSensor.crawelrInputItems) : tblSensor.crawelrInputItems != null)
return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (desc != null ? desc.hashCode() : 0);
result = 31 * result + (status != null ? status.hashCode() : 0);
result = 31 * result + (int) (targetId ^ (targetId >>> 32));
result = 31 * result + (int) crawlerId;
result = 31 * result + (crawelrInputItems != null ? crawelrInputItems.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_SENSOR_ITEM", schema = "public", catalog = "postgres")
public class TblSensorItem {
private long id;
private long sensorId;
private long itemId;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "SENSOR_ID", nullable = false)
public long getSensorId() {
return sensorId;
}
public void setSensorId(long sensorId) {
this.sensorId = sensorId;
}
@Basic
@Column(name = "ITEM_ID", nullable = false)
public long getItemId() {
return itemId;
}
public void setItemId(long itemId) {
this.itemId = itemId;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblSensorItem that = (TblSensorItem) o;
if (id != that.id) return false;
if (sensorId != that.sensorId) return false;
if (itemId != that.itemId) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (int) (sensorId ^ (sensorId >>> 32));
result = 31 * result + (int) (itemId ^ (itemId >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}

View File

@ -0,0 +1,80 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_TARGET", schema = "public", catalog = "postgres")
public class TblTarget {
private long id;
private Timestamp createDate;
private long probeId;
private long infraId;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = false)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Basic
@Column(name = "PROBE_ID", nullable = false)
public long getProbeId() {
return probeId;
}
public void setProbeId(long probeId) {
this.probeId = probeId;
}
@Basic
@Column(name = "INFRA_ID", nullable = false)
public long getInfraId() {
return infraId;
}
public void setInfraId(long infraId) {
this.infraId = infraId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblTarget tblTarget = (TblTarget) o;
if (id != tblTarget.id) return false;
if (probeId != tblTarget.probeId) return false;
if (infraId != tblTarget.infraId) return false;
if (createDate != null ? !createDate.equals(tblTarget.createDate) : tblTarget.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
result = 31 * result + (int) (probeId ^ (probeId >>> 32));
result = 31 * result + (int) (infraId ^ (infraId >>> 32));
return result;
}
}

View File

@ -0,0 +1,54 @@
package com.loafle.overflow.models;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* Created by root on 17. 6. 22.
*/
@Entity
@Table(name = "TBL_UI_WEBSOCKET", schema = "public", catalog = "postgres")
public class TblUiWebsocket {
private long id;
private Timestamp createDate;
@Id
@Column(name = "ID", nullable = false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "CREATE_DATE", nullable = true)
public Timestamp getCreateDate() {
return createDate;
}
public void setCreateDate(Timestamp createDate) {
this.createDate = createDate;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TblUiWebsocket that = (TblUiWebsocket) o;
if (id != that.id) return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
return true;
}
@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
}