GeneratedValue annotation with JPA and Hibernate | Spring Boot Annotations

Published: 06 March 2021
on channel: Senol Atac
2,917
28

The JPA specification supports 4 different primary key generation strategies which generate the primary key values programmatically or use database features, like auto-incremented columns or sequences.
In this lesson, we will see these strategies. These strategies are:
1. AUTO - Default strategy
2. IDENTITY - auto increment
3. SEQUENCE - sequence type
4. TABLE - create table for id generation

We will explain them with spring boot application. To test it, we will use spring boot unit tests.

=========Content===========
0:00 - Intro
0:55 - Auto Strategy
07:45 - Identity Strategy
11-14 - Sequence Strategy
16:03 - Table Strategy
=========Content===========

https://github.com/senolatac/spring-b...


=========References===========
https://thorben-janssen.com/jpa-gener...
=========References===========


Watch video GeneratedValue annotation with JPA and Hibernate | Spring Boot Annotations online without registration, duration hours minute second in high quality. This video was added by user Senol Atac 06 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,917 once and liked it 28 people.