Загрузка страницы

Java Spring Boot - JPA - Hibernate - H2 - Entities Inheritance Mapping - Joined Table Strategy

In the first place we will configure database connection. Later we will learn how to use inheritance together with JPA and Hibernate in Java Spring Boot application. We will create abstract super class (parent class) and then two sub-classes (child classes) which will inherit all of the properties and mapping information from parent class. We will use @Inheritance annotation to specify strategy which we will use. This time it will be JOINED strategy. In our super class we will also use @Enumerated annotation to learn how to persist enums. In the final stage we will learn how to use inheritance in case of repositories which we will use to persist and delete our entities from the database. We will track everything using H2 web console. Keep coding!

Joined table source code: https://github.com/codeforgeyt/jpa-inherit-joined-table
Joined table video: https://youtu.be/CMvq2i9Pcdo

Single table source code: https://github.com/codeforgeyt/jpa-inherit-single-table
Single table video: https://youtu.be/7dBijbBdgbc

Superclass source code: https://github.com/codeforgeyt/jpa-inherit-superclass
Superclass video: https://youtu.be/eq7WCvXqUfE

Table per class source code: https://github.com/codeforgeyt/jpa-inherit-table-per-class
Table per class video: https://youtu.be/YHA3LEwBMEE

Follow //CodefForgeYT on:
FB: https://www.facebook.com/codeforgeyt/
Twitter: https://twitter.com/codeforgeyt
GitHub: https://github.com/codeforgeyt
Instagram: http://instagram.com/codeforgeyt

Видео Java Spring Boot - JPA - Hibernate - H2 - Entities Inheritance Mapping - Joined Table Strategy канала CodeForgeYT
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
4 августа 2020 г. 11:00:01
00:16:28
Яндекс.Метрика