Primary Key « JPA « Java






1.Using System MilliSeconds As Key
2.Use UUID As Primary Key
3.Using Primary Key Column as Joined Column
4.Set Primary Key Joined Column For Secondary Table
5.Set IdClass for Compound Key
6.Set Primary Key By Yourself
7.Sequence Id Generation
8.Relationship On Id
9.Not Nullable ID








10.Mark Entity ID As Generated Value From Table
11.JPA can Create Sequence Table For You
12.Define And Use Compound Primary Key