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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to