79236720

Date: 2024-11-29 10:30:44
Score: 0.5
Natty:
Report link

So the problem was that in the child, the parent is fetch eagerly. And Hibernate is too stupid to deal with it.

See Spring Data JPA : Repository DeleteById method not working

So

@ManyToOne(fetch = FetchType.LAZY)
private Study study;

And deal with the "could not initialize proxy" errors with @Transactionnal.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Transactionnal
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Julien