[jboss-user] [EJB/JBoss] - Way to implement a removeAll() method?

seansawyer do-not-reply at jboss.com
Tue Jun 5 08:51:06 EDT 2007


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

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051313#4051313

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051313



More information about the jboss-user mailing list