wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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

Hibernate 3.0 - Checking 0 named queris

Robin Sing

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.

Paul Sturrock

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate 3.0 - Checking 0 named queris
Similar Threads
Object Relational Mapping Help
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