.................

This commit is contained in:
insanity 2017-08-21 19:05:18 +09:00
parent fe6ecc58df
commit bc2623e41f
41 changed files with 41 additions and 49 deletions

View File

@ -9,7 +9,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "API_KEY", schema = "public", catalog = "postgres") @Table(name = "API_KEY", schema = "public")
public class ApiKey { public class ApiKey {
private long id; private long id;
private String apiKey; private String apiKey;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "DOMAIN", schema = "public", catalog = "postgres") @Table(name = "DOMAIN", schema = "public")
public class Domain { public class Domain {
private long id; private long id;
private String name; private String name;

View File

@ -9,7 +9,7 @@ import java.sql.Timestamp;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "DOMAIN_MEMBER", schema = "public", catalog = "postgres") @Table(name = "DOMAIN_MEMBER", schema = "public")
public class DomainMember { public class DomainMember {
private long id; private long id;
private Timestamp createDate; private Timestamp createDate;

View File

@ -9,7 +9,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "EMAIL_AUTH", schema = "public", catalog = "postgres") @Table(name = "EMAIL_AUTH", schema = "public")
public class EmailAuth { public class EmailAuth {
private long id; private long id;
private String emailAuthKey; private String emailAuthKey;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "HISTORY", schema = "public", catalog = "postgres") @Table(name = "HISTORY", schema = "public")
public class History { public class History {
private long id; private long id;
private Date createDate; private Date createDate;

View File

@ -12,7 +12,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA") @Entity(name = "INFRA")
//@Table(name = "INFRA", schema = "public", catalog = "postgres") @Table(name = "INFRA", schema = "public")
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "INFRA_TYPE") @DiscriminatorColumn(name = "INFRA_TYPE")
public abstract class Infra { public abstract class Infra {

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_HOST") @Entity(name = "INFRA_HOST")
//@Table(name = "INFRA_HOST", schema = "public", catalog = "postgres") @Table(name = "INFRA_HOST", schema = "public")
@DiscriminatorValue("INFRA_HOST") @DiscriminatorValue("INFRA_HOST")
public class InfraHost extends Infra { public class InfraHost extends Infra {
// private long id; // private long id;

View File

@ -1,7 +1,5 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.module.infra.model;
import com.loafle.overflow.module.probe.model.Probe;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -9,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_MACHINE") @Entity(name = "INFRA_MACHINE")
//@Table(name = "INFRA_MACHINE", schema = "public", catalog = "postgres") @Table(name = "INFRA_MACHINE", schema = "public")
@DiscriminatorValue("INFRA_MACHINE") @DiscriminatorValue("INFRA_MACHINE")
public class InfraMachine extends Infra { public class InfraMachine extends Infra {
// private long id; // private long id;

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_OS") @Entity(name = "INFRA_OS")
//@Table(name = "INFRA_OS", schema = "public", catalog = "postgres") @Table(name = "INFRA_OS", schema = "public")
@DiscriminatorValue("INFRA_OS") @DiscriminatorValue("INFRA_OS")
public class InfraOS extends Infra { public class InfraOS extends Infra {
// private long id; // private long id;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_OS_APPLICATION") @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") @DiscriminatorValue("INFRA_OS_APPLICATION")
public class InfraOSApplication extends Infra { public class InfraOSApplication extends Infra {
// private long id; // private long id;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_OS_DAEMON") @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") @DiscriminatorValue("INFRA_OS_DAEMON")
public class InfraOSDaemon extends Infra { public class InfraOSDaemon extends Infra {
// private long id; // private long id;

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_OS_PORT") @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") @DiscriminatorValue("INFRA_OS_PORT")
public class InfraOSPort extends Infra { public class InfraOSPort extends Infra {
// private long id; // private long id;

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity(name = "INFRA_SERVICE") @Entity(name = "INFRA_SERVICE")
//@Table(name = "INFRA_SERVICE", schema = "public", catalog = "postgres") @Table(name = "INFRA_SERVICE", schema = "public")
@DiscriminatorValue("INFRA_SERVICE") @DiscriminatorValue("INFRA_SERVICE")
public class InfraService extends Infra{ public class InfraService extends Infra{
// private long id; // private long id;

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "MEMBER", schema = "public", catalog = "postgres") @Table(name = "MEMBER", schema = "public")
public class Member { public class Member {
private long id; private long id;
private String email; private String email;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_CRAWLER", schema = "public", catalog = "postgres") @Table(name = "META_CRAWLER", schema = "public")
public class MetaCrawler { public class MetaCrawler {
private short id; private short id;
private Date createDate; private Date createDate;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public", catalog = "postgres") @Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public")
public class MetaCrawlerInputItem { public class MetaCrawlerInputItem {
private int id; private int id;
private MetaInputType inputType; private MetaInputType inputType;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_INFRA_TYPE", schema = "public", catalog = "postgres") @Table(name = "META_INFRA_TYPE", schema = "public")
public class MetaInfraType { public class MetaInfraType {
private int id; private int id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_INFRA_VENDOR", schema = "public", catalog = "postgres") @Table(name = "META_INFRA_VENDOR", schema = "public")
public class MetaInfraVendor { public class MetaInfraVendor {
private int id; private int id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_INPUT_TYPE", schema = "public", catalog = "postgres") @Table(name = "META_INPUT_TYPE", schema = "public")
public class MetaInputType { public class MetaInputType {
private short id; private short id;
private String name; private String name;

View File

@ -9,7 +9,7 @@ import javax.persistence.Table;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_MEMBER_STATUS", schema = "public", catalog = "postgres") @Table(name = "META_MEMBER_STATUS", schema = "public")
public class MetaMemberStatus { public class MetaMemberStatus {
private short id; private short id;
private String name; private String name;

View File

@ -9,7 +9,7 @@ import javax.persistence.Table;
* Created by snoop on 17. 6. 26. * Created by snoop on 17. 6. 26.
*/ */
@Entity @Entity
@Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public", catalog = "postgres") @Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public")
public class MetaNoAuthProbeStatus { public class MetaNoAuthProbeStatus {
private short id; private short id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_NOTIFICATION", schema = "public", catalog = "postgres") @Table(name = "META_NOTIFICATION", schema = "public")
public class MetaNotification { public class MetaNotification {
private long id; private long id;
private Date createDate; private Date createDate;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_ARCHITECTURE", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_ARCHITECTURE", schema = "public")
public class MetaProbeArchitecture { public class MetaProbeArchitecture {
private short id; private short id;
private String architecture; private String architecture;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_OS", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_OS", schema = "public")
public class MetaProbeOs { public class MetaProbeOs {
private short id; private short id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_PACKAGE", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_PACKAGE", schema = "public")
public class MetaProbePackage { public class MetaProbePackage {
private long id; private long id;
private MetaProbeVersion version; private MetaProbeVersion version;

View File

@ -9,7 +9,7 @@ import javax.persistence.Table;
* Created by snoop on 17. 6. 26. * Created by snoop on 17. 6. 26.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_STATUS", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_STATUS", schema = "public")
public class MetaProbeStatus { public class MetaProbeStatus {
private short id; private short id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_TASK_TYPE", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_TASK_TYPE", schema = "public")
public class MetaProbeTaskType { public class MetaProbeTaskType {
private short id; private short id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_PROBE_VERSION", schema = "public", catalog = "postgres") @Table(name = "META_PROBE_VERSION", schema = "public")
public class MetaProbeVersion { public class MetaProbeVersion {
private short id; private short id;
private String version; private String version;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_SENSOR_ITEM", schema = "public", catalog = "postgres") @Table(name = "META_SENSOR_ITEM", schema = "public")
public class MetaSensorItem { public class MetaSensorItem {
private int id; private int id;
private MetaSensorItemType itemType; private MetaSensorItemType itemType;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_TYPE", schema = "public", catalog = "postgres") @Table(name = "META_SENSOR_ITEM_TYPE", schema = "public")
public class MetaSensorItemType { public class MetaSensorItemType {
private short id; private short id;
private String name; private String name;

View File

@ -9,7 +9,7 @@ import javax.persistence.Table;
* Created by snoop on 17. 6. 26. * Created by snoop on 17. 6. 26.
*/ */
@Entity @Entity
@Table(name = "META_SENSOR_STATUS", schema = "public", catalog = "postgres") @Table(name = "META_SENSOR_STATUS", schema = "public")
public class MetaSensorStatus { public class MetaSensorStatus {
private short id; private short id;
private String name; private String name;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_VENDOR_CRAWLER", schema = "public", catalog = "postgres") @Table(name = "META_VENDOR_CRAWLER", schema = "public")
public class MetaVendorCrawler { public class MetaVendorCrawler {
private int id; private int id;
private MetaCrawler crawler; private MetaCrawler crawler;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public", catalog = "postgres") @Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public")
public class MetaVendorCrawlerSensorItem { public class MetaVendorCrawlerSensorItem {
private long id; private long id;
private String interval; private String interval;

View File

@ -12,7 +12,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "NOAUTH_PROBE", schema = "public", catalog = "postgres") @Table(name = "NOAUTH_PROBE", schema = "public")
public class NoAuthProbe { public class NoAuthProbe {
private long id; private long id;
private String hostName; private String hostName;

View File

@ -1,7 +1,6 @@
package com.loafle.overflow.module.probe.model; package com.loafle.overflow.module.probe.model;
import com.loafle.overflow.module.domain.model.Domain; 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.member.model.Member;
import com.loafle.overflow.module.meta.model.MetaProbeStatus; import com.loafle.overflow.module.meta.model.MetaProbeStatus;
@ -12,7 +11,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "PROBE", schema = "public", catalog = "postgres") @Table(name = "PROBE", schema = "public")
public class Probe { public class Probe {
private long id; private long id;

View File

@ -9,7 +9,7 @@ import javax.persistence.*;
*/ */
@Entity @Entity
@Table(name = "PROBE_INFRAHOST", schema = "public", catalog = "postgres") @Table(name = "PROBE_INFRAHOST", schema = "public")
public class ProbeHost { public class ProbeHost {
private long id; private long id;

View File

@ -10,7 +10,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "PROBE_TASK", schema = "public", catalog = "postgres") @Table(name = "PROBE_TASK", schema = "public")
public class ProbeTask { public class ProbeTask {
private long id; private long id;
private MetaProbeTaskType taskType; private MetaProbeTaskType taskType;

View File

@ -13,7 +13,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "SENSOR", schema = "public", catalog = "postgres") @Table(name = "SENSOR", schema = "public")
public class Sensor { public class Sensor {
private long id; private long id;
private Date createDate; private Date createDate;

View File

@ -11,7 +11,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "SENSOR_ITEM", schema = "public", catalog = "postgres") @Table(name = "SENSOR_ITEM", schema = "public")
public class SensorItem { public class SensorItem {
private long id; private long id;
private Sensor sensor; private Sensor sensor;

View File

@ -1,10 +1,5 @@
package com.loafle.overflow.module.target.model; 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 javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -12,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "TARGET", schema = "public", catalog = "postgres") @Table(name = "TARGET", schema = "public")
public class Target { public class Target {
private long id; private long id;

View File

@ -7,7 +7,7 @@ import java.util.Date;
* Created by root on 17. 6. 22. * Created by root on 17. 6. 22.
*/ */
@Entity @Entity
@Table(name = "UI_WEBSOCKET", schema = "public", catalog = "postgres") @Table(name = "UI_WEBSOCKET", schema = "public")
public class UiWebsocket { public class UiWebsocket {
private long id; private long id;
private Date createDate; private Date createDate;