Except, unfortunately, that the project in question does not use Hibernate.
It seems that there is no way to accomplish this through EJB:
http://forum.java.sun.com/thread.jspa?threadID=5174100messageID=9671593
The impetus for this post was that, with a sufficiently large number of
entities, I
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
I am also experiencing a similar problem. Were you able to find a solution?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032483#4032483
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032483
When attempting to remove a bean that has cascading deletion defined on its
relationship to another bean, I sometimes receive an NPE when the removal is
attempted. The relevant portion of the stack trace is as follows:
| 14:03:34,448 INFO [STDOUT]