From 7f3f9a5d10e38e030f8cfdba035e6ac8b2bad510 Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Wed, 11 Oct 2023 13:22:27 +0000 Subject: [PATCH] Revert cascade on ticket to all --- src/main/java/ch/wisv/events/core/model/ticket/Ticket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/wisv/events/core/model/ticket/Ticket.java b/src/main/java/ch/wisv/events/core/model/ticket/Ticket.java index 753d46ab..866cbef2 100644 --- a/src/main/java/ch/wisv/events/core/model/ticket/Ticket.java +++ b/src/main/java/ch/wisv/events/core/model/ticket/Ticket.java @@ -39,7 +39,7 @@ public class Ticket { /** * Customer which owns the Ticket. */ - @ManyToOne(cascade = {javax.persistence.CascadeType.MERGE}) + @ManyToOne(cascade = {javax.persistence.CascadeType.ALL}) public Order order; /**