Hibernate throws Cannot delete or update a parent row: a foreign key constraint fails
The REMOVE cascade type is for the standard JPA remove()
operation. For the native Hibernate delete()
operation, you need to use a Hibernate-proprietary annotation:
@Cascade(CascadeType.DELETE)