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

Reply via email to