ing
This commit is contained in:
parent
6a8265a38f
commit
b63fb7a4b7
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<groupId>com.loafle.overflow</groupId>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.56-SNAPSHOT</version>
|
<version>1.0.57-SNAPSHOT</version>
|
||||||
<name>com.loafle.overflow.commons-java</name>
|
<name>com.loafle.overflow.commons-java</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -18,6 +18,14 @@ public abstract class Infra {
|
||||||
private Probe probe;
|
private Probe probe;
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
|
protected Infra() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Infra(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
|
|
|
@ -23,6 +23,14 @@ public class InfraHost extends Infra {
|
||||||
private List<InfraHostApplication> infraHostApplications;
|
private List<InfraHostApplication> infraHostApplications;
|
||||||
private List<InfraHostDaemon> infraHostDaemons;
|
private List<InfraHostDaemon> infraHostDaemons;
|
||||||
|
|
||||||
|
public InfraHost() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public InfraHost(Long id) {
|
||||||
|
super(id);
|
||||||
|
}
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "INFRA_ZONE_ID", nullable = true)
|
@JoinColumn(name = "INFRA_ZONE_ID", nullable = true)
|
||||||
public InfraZone getInfraZone() {
|
public InfraZone getInfraZone() {
|
||||||
|
|
|
@ -18,6 +18,13 @@ public class InfraService extends Infra {
|
||||||
private InfraHostPort infraHostPort;
|
private InfraHostPort infraHostPort;
|
||||||
private MetaCryptoType metaCryptoType;
|
private MetaCryptoType metaCryptoType;
|
||||||
|
|
||||||
|
public InfraService() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public InfraService(Long id) {
|
||||||
|
super(id);
|
||||||
|
}
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "META_TARGET_SERVICE_TYPE_ID", nullable = true)
|
@JoinColumn(name = "META_TARGET_SERVICE_TYPE_ID", nullable = true)
|
||||||
|
|
|
@ -20,6 +20,14 @@ public class InfraZone extends Infra {
|
||||||
private String address;
|
private String address;
|
||||||
private String mac;
|
private String mac;
|
||||||
|
|
||||||
|
public InfraZone() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public InfraZone(Long id) {
|
||||||
|
super(id);
|
||||||
|
}
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true)
|
@JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true)
|
||||||
public MetaTargetZoneType getMetaTargetZoneType() {
|
public MetaTargetZoneType getMetaTargetZoneType() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user