• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!