MySQL has set the Foreign Key association in InnoDB, which makes it impossible to update or delete data. You can avoid this situation by setting the Foreign_key_checks variable.
SET foreign_key_checks = 0;
Settings after delete is complete
SET foreign_key_checks = 1;
Other:
Turn off Uniqueness Checks
Set unique_checks=0;
Set Unique_checks=1;
Extended:
Hibernate and Oracle cannot handle data integrity at the same time. Here's how to fix it:
(Method 1) Give data integrity constraints to Oracle processing without setting data integrity in Hibernate.
(Method 2) give the data integrity constraint to hibernate, set the parent table relationship in Hibernate, and cascade Delete to eliminate the integrity constraints of the tables in the Oracle database, that is, not to set the foreign keys for the child tables.
Hibernate deletes a table that encounters a primary key being referenced by a foreign key that violates full constraints cannot be removed