I have some tables managed by Hibernate with various foreign key constraints. Cascade on delete is currently managed by Hibernate alone. For playing around with test data I
Don't use cascade = CascadeType.REMOVE Documentation here
Because of your db may be destroyed. You can use formal order. Delete sub stable and then remove master table