Forums Register Login

Insertion of data to a table using Hibernate

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 709 times.
Similar Threads
Hibernate Annotations
Collections
Update Single value in a row
* Welcome Cameron Wallace McKenzie
How to know whether a particular row exists in table
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:01:35.