.................
This commit is contained in:
parent
fe6ecc58df
commit
bc2623e41f
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "API_KEY", schema = "public", catalog = "postgres")
|
||||
@Table(name = "API_KEY", schema = "public")
|
||||
public class ApiKey {
|
||||
private long id;
|
||||
private String apiKey;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "DOMAIN", schema = "public", catalog = "postgres")
|
||||
@Table(name = "DOMAIN", schema = "public")
|
||||
public class Domain {
|
||||
private long id;
|
||||
private String name;
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.sql.Timestamp;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "DOMAIN_MEMBER", schema = "public", catalog = "postgres")
|
||||
@Table(name = "DOMAIN_MEMBER", schema = "public")
|
||||
public class DomainMember {
|
||||
private long id;
|
||||
private Timestamp createDate;
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "EMAIL_AUTH", schema = "public", catalog = "postgres")
|
||||
@Table(name = "EMAIL_AUTH", schema = "public")
|
||||
public class EmailAuth {
|
||||
private long id;
|
||||
private String emailAuthKey;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "HISTORY", schema = "public", catalog = "postgres")
|
||||
@Table(name = "HISTORY", schema = "public")
|
||||
public class History {
|
||||
private long id;
|
||||
private Date createDate;
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA")
|
||||
//@Table(name = "INFRA", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA", schema = "public")
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@DiscriminatorColumn(name = "INFRA_TYPE")
|
||||
public abstract class Infra {
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_HOST")
|
||||
//@Table(name = "INFRA_HOST", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_HOST", schema = "public")
|
||||
@DiscriminatorValue("INFRA_HOST")
|
||||
public class InfraHost extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package com.loafle.overflow.module.infra.model;
|
||||
|
||||
import com.loafle.overflow.module.probe.model.Probe;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -9,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_MACHINE")
|
||||
//@Table(name = "INFRA_MACHINE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_MACHINE", schema = "public")
|
||||
@DiscriminatorValue("INFRA_MACHINE")
|
||||
public class InfraMachine extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_OS")
|
||||
//@Table(name = "INFRA_OS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_OS", schema = "public")
|
||||
@DiscriminatorValue("INFRA_OS")
|
||||
public class InfraOS extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_OS_APPLICATION")
|
||||
//@Table(name = "INFRA_OS_APPLICATION", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_OS_APPLICATION", schema = "public")
|
||||
@DiscriminatorValue("INFRA_OS_APPLICATION")
|
||||
public class InfraOSApplication extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_OS_DAEMON")
|
||||
//@Table(name = "INFRA_OS_DAEMON", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_OS_DAEMON", schema = "public")
|
||||
@DiscriminatorValue("INFRA_OS_DAEMON")
|
||||
public class InfraOSDaemon extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_OS_PORT")
|
||||
//@Table(name = "INFRA_OS_PORT", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_OS_PORT", schema = "public")
|
||||
@DiscriminatorValue("INFRA_OS_PORT")
|
||||
public class InfraOSPort extends Infra {
|
||||
// private long id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity(name = "INFRA_SERVICE")
|
||||
//@Table(name = "INFRA_SERVICE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "INFRA_SERVICE", schema = "public")
|
||||
@DiscriminatorValue("INFRA_SERVICE")
|
||||
public class InfraService extends Infra{
|
||||
// private long id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "MEMBER", schema = "public", catalog = "postgres")
|
||||
@Table(name = "MEMBER", schema = "public")
|
||||
public class Member {
|
||||
private long id;
|
||||
private String email;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_CRAWLER", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_CRAWLER", schema = "public")
|
||||
public class MetaCrawler {
|
||||
private short id;
|
||||
private Date createDate;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public")
|
||||
public class MetaCrawlerInputItem {
|
||||
private int id;
|
||||
private MetaInputType inputType;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_INFRA_TYPE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_INFRA_TYPE", schema = "public")
|
||||
public class MetaInfraType {
|
||||
private int id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_INFRA_VENDOR", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_INFRA_VENDOR", schema = "public")
|
||||
public class MetaInfraVendor {
|
||||
private int id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_INPUT_TYPE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_INPUT_TYPE", schema = "public")
|
||||
public class MetaInputType {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.persistence.Table;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_MEMBER_STATUS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_MEMBER_STATUS", schema = "public")
|
||||
public class MetaMemberStatus {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.persistence.Table;
|
|||
* Created by snoop on 17. 6. 26.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public")
|
||||
public class MetaNoAuthProbeStatus {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_NOTIFICATION", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_NOTIFICATION", schema = "public")
|
||||
public class MetaNotification {
|
||||
private long id;
|
||||
private Date createDate;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_ARCHITECTURE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_ARCHITECTURE", schema = "public")
|
||||
public class MetaProbeArchitecture {
|
||||
private short id;
|
||||
private String architecture;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_OS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_OS", schema = "public")
|
||||
public class MetaProbeOs {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_PACKAGE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_PACKAGE", schema = "public")
|
||||
public class MetaProbePackage {
|
||||
private long id;
|
||||
private MetaProbeVersion version;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.persistence.Table;
|
|||
* Created by snoop on 17. 6. 26.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_STATUS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_STATUS", schema = "public")
|
||||
public class MetaProbeStatus {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_TASK_TYPE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_TASK_TYPE", schema = "public")
|
||||
public class MetaProbeTaskType {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_PROBE_VERSION", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_PROBE_VERSION", schema = "public")
|
||||
public class MetaProbeVersion {
|
||||
private short id;
|
||||
private String version;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_SENSOR_ITEM", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_SENSOR_ITEM", schema = "public")
|
||||
public class MetaSensorItem {
|
||||
private int id;
|
||||
private MetaSensorItemType itemType;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_SENSOR_ITEM_TYPE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_SENSOR_ITEM_TYPE", schema = "public")
|
||||
public class MetaSensorItemType {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.persistence.Table;
|
|||
* Created by snoop on 17. 6. 26.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_SENSOR_STATUS", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_SENSOR_STATUS", schema = "public")
|
||||
public class MetaSensorStatus {
|
||||
private short id;
|
||||
private String name;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_VENDOR_CRAWLER", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_VENDOR_CRAWLER", schema = "public")
|
||||
public class MetaVendorCrawler {
|
||||
private int id;
|
||||
private MetaCrawler crawler;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public", catalog = "postgres")
|
||||
@Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public")
|
||||
public class MetaVendorCrawlerSensorItem {
|
||||
private long id;
|
||||
private String interval;
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "NOAUTH_PROBE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "NOAUTH_PROBE", schema = "public")
|
||||
public class NoAuthProbe {
|
||||
private long id;
|
||||
private String hostName;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package com.loafle.overflow.module.probe.model;
|
||||
|
||||
import com.loafle.overflow.module.domain.model.Domain;
|
||||
import com.loafle.overflow.module.infra.model.InfraHost;
|
||||
import com.loafle.overflow.module.member.model.Member;
|
||||
import com.loafle.overflow.module.meta.model.MetaProbeStatus;
|
||||
|
||||
|
@ -12,7 +11,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PROBE", schema = "public", catalog = "postgres")
|
||||
@Table(name = "PROBE", schema = "public")
|
||||
public class Probe {
|
||||
|
||||
private long id;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.persistence.*;
|
|||
*/
|
||||
|
||||
@Entity
|
||||
@Table(name = "PROBE_INFRAHOST", schema = "public", catalog = "postgres")
|
||||
@Table(name = "PROBE_INFRAHOST", schema = "public")
|
||||
public class ProbeHost {
|
||||
|
||||
private long id;
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PROBE_TASK", schema = "public", catalog = "postgres")
|
||||
@Table(name = "PROBE_TASK", schema = "public")
|
||||
public class ProbeTask {
|
||||
private long id;
|
||||
private MetaProbeTaskType taskType;
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SENSOR", schema = "public", catalog = "postgres")
|
||||
@Table(name = "SENSOR", schema = "public")
|
||||
public class Sensor {
|
||||
private long id;
|
||||
private Date createDate;
|
||||
|
|
|
@ -11,7 +11,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SENSOR_ITEM", schema = "public", catalog = "postgres")
|
||||
@Table(name = "SENSOR_ITEM", schema = "public")
|
||||
public class SensorItem {
|
||||
private long id;
|
||||
private Sensor sensor;
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
package com.loafle.overflow.module.target.model;
|
||||
|
||||
import com.loafle.overflow.module.infra.model.Infra;
|
||||
import com.loafle.overflow.module.probe.model.Probe;
|
||||
import org.hibernate.annotations.OnDelete;
|
||||
import org.hibernate.annotations.OnDeleteAction;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -12,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "TARGET", schema = "public", catalog = "postgres")
|
||||
@Table(name = "TARGET", schema = "public")
|
||||
public class Target {
|
||||
|
||||
private long id;
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Date;
|
|||
* Created by root on 17. 6. 22.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "UI_WEBSOCKET", schema = "public", catalog = "postgres")
|
||||
@Table(name = "UI_WEBSOCKET", schema = "public")
|
||||
public class UiWebsocket {
|
||||
private long id;
|
||||
private Date createDate;
|
||||
|
|
Loading…
Reference in New Issue
Block a user