diff --git a/src/main/java/info/bukova/isspst/data/Invoicing.java b/src/main/java/info/bukova/isspst/data/Invoicing.java index 19dfdfb5..a19107e8 100644 --- a/src/main/java/info/bukova/isspst/data/Invoicing.java +++ b/src/main/java/info/bukova/isspst/data/Invoicing.java @@ -1,5 +1,6 @@ package info.bukova.isspst.data; +import org.hibernate.annotations.Cascade; import org.hibernate.annotations.LazyCollection; import org.hibernate.annotations.LazyCollectionOption; @@ -21,6 +22,7 @@ public class Invoicing extends BaseData implements Cloneable @OneToOne(fetch = FetchType.EAGER) @JoinColumn(name = "REQUIREMENT_ID") + @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) private Requirement requirement; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)