This commit is contained in:
crusader 2018-06-14 18:33:45 +09:00
parent 57567d6842
commit 70b120c3ae
3 changed files with 5 additions and 6 deletions

View File

@ -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.63-SNAPSHOT</version> <version>1.0.64-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -86,7 +86,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostIPs * @return the infraHostIPs
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
public List<InfraHostIP> getInfraHostIPs() { public List<InfraHostIP> getInfraHostIPs() {
return infraHostIPs; return infraHostIPs;
} }
@ -101,7 +101,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostPorts * @return the infraHostPorts
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
public List<InfraHostPort> getInfraHostPorts() { public List<InfraHostPort> getInfraHostPorts() {
return infraHostPorts; return infraHostPorts;
} }
@ -116,7 +116,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostApplications * @return the infraHostApplications
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
public List<InfraHostApplication> getInfraHostApplications() { public List<InfraHostApplication> getInfraHostApplications() {
return infraHostApplications; return infraHostApplications;
} }
@ -131,7 +131,7 @@ public class InfraHost extends Infra {
/** /**
* @return the infraHostDaemons * @return the infraHostDaemons
*/ */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "infraHost")
public List<InfraHostDaemon> getInfraHostDaemons() { public List<InfraHostDaemon> getInfraHostDaemons() {
return infraHostDaemons; return infraHostDaemons;
} }

View File

@ -45,7 +45,6 @@ public class InfraHostApplication {
this.name = name; this.name = name;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {