This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new 1e78a00 AIRAVATA-2876 AppDeployment orphanRemoval
1e78a00 is described below
commit 1e78a00d6c799bdeed3c89cf41e45e285509b00a
Author: Marcus Christie <[email protected]>
AuthorDate: Tue Sep 11 12:20:47 2018 -0400
AIRAVATA-2876 AppDeployment orphanRemoval
---
.../entities/appcatalog/ApplicationDeploymentEntity.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationDeploymentEntity.java
b/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationDeploymentEntity.java
index 31c34ad..5e906f1 100644
---
a/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationDeploymentEntity.java
+++
b/modules/registry-refactoring/src/main/java/org/apache/airavata/registry/core/entities/appcatalog/ApplicationDeploymentEntity.java
@@ -82,27 +82,27 @@ public class ApplicationDeploymentEntity implements
Serializable {
@Column(name = "EDITABLE_BY_USER")
private boolean editableByUser;
- @OneToMany(targetEntity = ModuleLoadCmdEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = ModuleLoadCmdEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<ModuleLoadCmdEntity> moduleLoadCmds;
- @OneToMany(targetEntity = AppEnvironmentEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = AppEnvironmentEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<AppEnvironmentEntity> setEnvironment;
- @OneToMany(targetEntity = LibraryPrependPathEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = LibraryPrependPathEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<LibraryPrependPathEntity> libPrependPaths;
- @OneToMany(targetEntity = LibraryApendPathEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = LibraryApendPathEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<LibraryApendPathEntity> libAppendPaths;
- @OneToMany(targetEntity = PrejobCommandEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = PrejobCommandEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<PrejobCommandEntity> preJobCommands;
- @OneToMany(targetEntity = PostjobCommandEntity.class, cascade =
CascadeType.ALL,
+ @OneToMany(targetEntity = PostjobCommandEntity.class, cascade =
CascadeType.ALL, orphanRemoval = true,
mappedBy = "applicationDeployment", fetch = FetchType.EAGER)
private List<PostjobCommandEntity> postJobCommands;