Create Database Schema with Spring JPA ddl-auto=create with IntelliJ IDEA

Опубликовано: 01 Октябрь 2024
на канале: Brandan Jones
9,719
75

Use Spring JPA to create tables in an existing MySQL database. These tables are based on a DTO/JavaBean that is annotated with @Entity, @Id, @GeneratedValue. We also extend CrudRepository into an extremly simple interface. By using generics and exending an existing interface, we automatically get the Create, Read, Update, and Delete methods for our DTO. Finally, we wire up this new Repository interface to our DAO layer, then our DAO to the Service, and the Service to a Controller layer.

Source code is freely available on GitHub: https://github.com/discospiff/SpringB...

This video is part of a playlist on Microservices and Spring Boot with IntelliJ IDEA:    • IntelliJ IDEA, Git, Github, and .giti...