Skip to content

Commit

Permalink
Add cascade to Ticket - Order relation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Oct 2, 2023
1 parent 1a295c4 commit 8e3d3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/wisv/events/core/model/ticket/Ticket.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Ticket {
/**
* Customer which owns the Ticket.
*/
@ManyToOne
@ManyToOne(cascade = {javax.persistence.CascadeType.ALL})
public Order order;

/**
Expand Down

0 comments on commit 8e3d3d7

Please sign in to comment.