GeneratedValue annotation with JPA and Hibernate | Spring Boot Annotations

Опубликовано: 06 Март 2021
на канале: 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===========


Смотрите видео GeneratedValue annotation with JPA and Hibernate | Spring Boot Annotations онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Senol Atac 06 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,917 раз и оно понравилось 28 людям.