Answer the question
In order to leave comments, you need to log in
Can't find the right cascade type?
Can anyone tell me what type of cascade to set?
In 1 entity field is:
@OneToMany(mappedBy = "client", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<Ticket> tickets = new ArrayList<>();
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "client_id")
private Client client;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question