This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate 3.0 - Checking 0 named queris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate 3.0 - Checking 0 named queris" Watch "Hibernate 3.0 - Checking 0 named queris" New topic
Author

Hibernate 3.0 - Checking 0 named queris

Robin Sing
Greenhorn

Joined: Jul 16, 2005
Posts: 1
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

Joined: Apr 14, 2004
Posts: 10336

Assuming you have mapped your object properly, you just need to give values to each property and call session.save(yourPOJO).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate 3.0 - Checking 0 named queris