[jboss-user] [EJB/JBoss] - Re: Way to implement a removeAll() method?
khkachn
do-not-reply at jboss.com
Thu Jun 7 20:54:16 EDT 2007
Can't you do something like:
int deletedEntities = entityManager.createQuery("delete from Customer");
if you want to remove all records from a customer table? I have not tried this yet, but it works in Hibernate based on their documentation:
http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/batch.html#batch-direct
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052362#4052362
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052362
More information about the jboss-user
mailing list