• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate 3.0 - Checking 0 named queris

 
Robin Sing
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Hibernate 3.0,

When I am running the class file I am getting like this\

Insert into contact (firstname,lastname,email,id) values (?,?,?,?).

I want to insert the values to db.

Mohan
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you have mapped your object properly, you just need to give values to each property and call session.save(yourPOJO).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic