Hi. You may be need to use JDBC for mass delete due to perfomance issues... hibernate needs load every object from the data base before deleting it[1]. May you try to use JdbcTemplate[2] instead of HibernateTemplate.
Best regards. [1] http://www.mail-archive.com/hibernate-de...@lists.sourceforge.net/msg00685.html [2]http://static.springsource.org/spring/docs/2.0.x/reference/jdbc.html 2009/7/21 Reza Farshi <reza.far...@gmail.com> > Hi group, Matt , > in AppFuse there is a unidirectional Many-to-Many relation between User and > role, so deleting a user consequences deleting a row from user and > corresponding rows form user_role table, > but I also need deleting role to be cascaded , I mean when I delete a > role , corresponding roles form user_role table to be deleted too . > > what is appropriate annotations must be applied? > > > thanks. -- Atentamente Óscar Álvarez Vielma (09) 8416 4052