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
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="http://dharapvj.wordpress.com" rel="nofollow">Blog</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: Delete Query in hibernate doesnt work
Similar Threads
null pointer exception
data insert error
Hql delete syntax?
StaleStateException on session.flush()