Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete Query in hibernate doesnt work

 
Prasad Suseela
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For me the same program works correctly... When you run the program.. do you get any error message on console?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!