JPA ID Auto Incrementation Identity vs Sequence
ฝัง
- เผยแพร่เมื่อ 15 ก.ย. 2024
- Hello and welcome to this tutorial! In today's video, I'll be demonstrating the most commonly used strategies for generating primary keys in JPA. Namely IDENTITY and SEQUENCE.
The JPA specification offers various methods to generate auto-incremented primary keys. By simply adding annotations to the entity identifier, you can achieve this. Understanding how these annotations work in the background is crucial.
tramotech.de
well explained
Thanks for this video,
In fact I’ve never used GenerationType.squence in my jpa .
Now knowing the difference i will try to use it more often.
Thanks again
Great!
👍👍👍👍👍👍
👍👍👍👍👍👍
👍👍👍👍👍👍