diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2023-02-20 16:58:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-02-20 16:58:49 +0000 |
commit | c9565e1e4b1bc75b8f970577a9a049a8c49db2c9 (patch) | |
tree | 49f9984f7ca8899398b7190f83573cf0910b2336 /cps-ri/src | |
parent | 99223ca17f8e9e257d1ac470df8d3f7de72491be (diff) | |
parent | 0f9f9df8649f7a67706bfe83c51d0c2ed11810b8 (diff) |
Merge "FragmentEntity stuck in memory on "Already exists" error"
Diffstat (limited to 'cps-ri/src')
-rwxr-xr-x | cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java b/cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java index 2ffbb4ae0e..82afc5a818 100755 --- a/cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java @@ -44,6 +44,7 @@ import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; +import lombok.ToString; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; @@ -89,6 +90,7 @@ public class FragmentEntity implements Serializable { @JoinColumn(name = "anchor_id") private AnchorEntity anchor; + @ToString.Exclude @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY) @JoinColumn(name = "parent_id") private Set<FragmentEntity> childFragments; |