• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Insertion of data to a table using Hibernate

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic