I want that the primary key "puid" gets automatically generated. However I the puid still is always 0. I tried different GeneratedValue variants (Sequence, Identity and Auto) but the result is the same.
This is my code:
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long puid; Does anyone have an idea how to fix that?
Longfor IDs.