I am trying to do a cascade delete (via the EJB remove() method) on an object that has a foreign key reference to other objects in the same table. (It's a tree node, and each node has a reference to its parent.) Problem is that the delete order is wrong, so I get "Entity not found" exceptions. Has anybody else run into this? What can be done?