0 Replies Latest reply on Sep 26, 2003 1:30 PM by Willie Wheeler

    Cascade delete with a single table

    Willie Wheeler Newbie

      Hi all,

      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?

      Thanks,
      Willie