diff --git a/src/main/java/ee/tuleva/onboarding/mandate/Mandate.java b/src/main/java/ee/tuleva/onboarding/mandate/Mandate.java index 13b3b7111..069e5654f 100644 --- a/src/main/java/ee/tuleva/onboarding/mandate/Mandate.java +++ b/src/main/java/ee/tuleva/onboarding/mandate/Mandate.java @@ -81,7 +81,7 @@ public class Mandate implements Serializable { private MandateDetails details; @Nullable - @ManyToOne(fetch = FetchType.EAGER) + @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.EAGER) @JoinColumn( name = "mandate_batch_id", referencedColumnName = "id",