Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to craete an id autoincrement in oracle and use in Hibernate mapping

873695Aug 4 2011 — edited Aug 4 2011
Hi
I have a table for guest table name is "guestbook" where i want visitor_number column should be auto increment as the guest when visited my site just enter guest name and message , the visitor_number should be generated automatically using auto increment in oracle .

i know this can be done using sequence and trigger , but in that while i use insert i have to call nextval but i want ti insert the values from my jsp page to database using hibernate.

Can anyone help me .

Thanks and regards
Manna
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2011
Added on Aug 4 2011
1 comment
1,214 views