79492566

Date: 2025-03-07 14:13:29
Score: 1.5
Natty:
Report link

SOLVED

with a non-owner variable like this

@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL }, mappedBy = "listaProdotti")
@JsonBackReference
private Set<Ordini> ordini;

and an owner variable like this

@ManyToMany
@Valid
private Set<Prodotti> listaProdotti = new HashSet<>();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stefano Giammori