Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Hibernate Interview Questions and Answers

Ques. How do you define sequence generated primary key in hibernate?
Ans. Using <generator> tag.
Example:-
<id column=\"USER_ID\" name=\"id\" type=\"java.lang.Long\">
<generator class=\"sequence\">
<param name=\"table\">SEQUENCE_NAME</param>
<generator>
</id>
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook