I don't know JPA so watch out for dollar signs in my code below, they signify variables. So as already suggested, you may be writing your cascades as triggers.
In case you need a booster on some of the logic you'll be using:
Say you have:
table_1, the primary entity table
table_2, the "many" table in a one-to-many relationship with table_1
... and table_1 has an FKEY to table_2:
delete from table_2 where id in (select table_2_id from table_1 where id = $table_1_id)
Or say the FKEY is on the opposite table:
delete from table_2 where table_1_id = $table_1_id
Or say you have:
table_1, the primary entities
table_2, an associated entity table with many-to-many relationship to table_1
link_table, which records the many-to-many associations by consisting only of two FKEY's and a row id
- and you only want to delete the associations because of the M2M relation
delete from link_table where table_1_id = $table_1_id
Or perhaps this is some master record and the many-to-many relationships should cascade-delete...
delete from table_2 where id in (select table_2_id from link_table where table_1_id = $table_1_id);
delete from link_table where table_1_id = $table_1_id;