Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Insertion of data to a table using Hibernate

 
Pankaj Patro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,



any can help me?

I am trying to insert a new record to my DBTable, but I unable to find exact way to do it using Hibernate.

In my project ,we are using DAO design pattern and CBO(it have getter and settetr methods of field of database) as a parameter to Session bean.

Thanks Advance
Pankaj
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CBO? Not sure what you mean there. But I'll plug ahead regardless assuming this is the object you created to represent a record in your database which you have mapped to the appropriate table. If it is, then inserting the data is easy enough. Just call session.save() passing the object to persist.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic