This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hibernate 3.0 - Checking 0 named queris
 
Similar Threads
Why wrong object is persisted first, when it is not saved first
migrating code from hibernate 2 to hibernate 3.0
Problem with @Transactional (Transaction is not getting rollbacked)
HiberNate with <sql-insert
Object Relational Mapping Help