[Hibernate] Can Hibernate delete all records from table?

2003-11-05 Thread JD L
Hi.

Can someone please tell me if there is a way to delete
all the records from a table in Hibernate.  I am
looking for the same effect that "delete from
SOMETABLE" has in SQL.

Is this the intention of the delete function? If so
how does one use it?

I have tried using Hibernate's delete function but
cannot get it to work.



My code looks something like this

MyTable mt =  new MyTable() ;
try {
session.delete(mt);
}
...


Thanks in advance.
jd

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] unsubscribe

2004-01-03 Thread JD L
 
 

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel