File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Delete Query in hibernate doesnt work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Delete Query in hibernate doesnt work" Watch "Delete Query in hibernate doesnt work" New topic

Delete Query in hibernate doesnt work

Prasad Suseela

Joined: Jan 02, 2009
Posts: 5
I am a newbie to hibernate 3...I have a problem associated with the hibernate delete query.....
when i execute the delete query it returns a 'null'....
My program to delete the query is

my mapping file(contact.hbm.xml) is

and my POJO file is

Could anyone please help me out in this issue???
Vijay Dharap
Ranch Hand

Joined: Mar 18, 2004
Posts: 32
For me the same program works correctly... When you run the program.. do you get any error message on console?

Vijay dharap,
<a href="" rel="nofollow">Blog</a>
I agree. Here's the link:
subject: Delete Query in hibernate doesnt work
It's not a secret anymore!