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>
<artifactId>commons-java</artifactId>
<packaging>jar</packaging>
<version>1.0.63-SNAPSHOT</version>
<version>1.0.64-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name>
<properties>

View File

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

View File

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