2 Replies Latest reply on Jun 8, 2007 9:34 AM by Sean Sawyer

    Way to implement a removeAll() method?

    Sean Sawyer Newbie

      I want to implement a method on an entity bean's home interface to remove all entities of a particular type. Basically, I'm looking for something akin to the following simple SQL query:

      DELETE FROM entitytable;

      My initial idea was to try to use EJB-QL to do this, but upon further investigation I found that it doesn't have a DELETE keyword at all (at least in the version I'm using).

      Is there any other way to do this?

      Using EJB 2.1 / JBoss 3.2.7