From 275e12002117aa87660fd5a86004af5dde77a31f Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Fri, 16 Oct 2015 10:03:34 +0200 Subject: [PATCH] =?UTF-8?q?Opraveno=20ukl=C3=A1d=C3=A1n=C3=AD=20z=C3=A1zna?= =?UTF-8?q?mu=20v=20agend=C4=9B=20Fakturace=20po=C5=BEadavk=C5=AF.=20P?= =?UTF-8?q?=C5=99=C3=ADznak=20Fakturov=C3=A1no=20se=20ji=C5=BE=20ukl=C3=A1?= =?UTF-8?q?d=C3=A1=20spr=C3=A1vn=C4=9B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/data/Invoicing.java | 2 ++ 1 file changed, 2 insertions(+) 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)