-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: delete all rows?
PostPosted: Thu Nov 10, 2005 3:03 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
How to delete all rows? Do I need to retrieve all rows from database, and then remove one by one using EntityManager? If yes, it is not efficient. If using SQL, just one SQL statement to delete all rows. does EJB QL support DML such as delete?
Thanks. Dave


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 10:43 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
You now have a batch delete.
Read in documentation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.