True support for batch delete will be added as a new feature of HQL in Hibernate 3.1.
For now, simply run a query and then delete each query result. Dongsheng Song wrote: >How to do Hibernate2's session.delete("from Holder") in Hibernate3 ? > >I want to do batch delete SQL action, e.g. > >delete from TABLE > >or > >delete from TABLE where TABLE.FIELD='A' > >or > >delete from TABLE where TABLE.FIELD=? > >I can't find any such examples in Hibernate3 test program or docs. > >Thank for some help, > >Dongsheng Song > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE >LinuxWorld Reader's Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >_______________________________________________ >hibernate-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > -- Gavin King +61 410 534 454 +1 404 822 8349 callto://gavinking Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] http://jboss.com ------------------------------------------------------- This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel