skip to main
|
skip to sidebar
DebugMaster
22. How do you define sequence generated primary key in hibernate
Using <generator> tag.
<id column="USER_ID" name="id" type="java.lang.Long">
<generator class="sequence">
<param name="table">SEQUENCE_NAME</param>
<generator>
</id>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Interview Questions
Core Java FastTrack
Core Java Advanced
Java Swing
Java Applet
Hibernate
HR
No comments:
Post a Comment