• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate 3.0 - Checking 0 named queris  RSS feed

 
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
 
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!