filmov
tv
Java Spring Boot [2024] Part 2: Database, Entity, Repository, Service

Показать описание
Join my Patreon:
LinkTree:
SQL scripts:
use nobsv2;
CREATE TABLE product(
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
description VARCHAR(255),
price DOUBLE
);
INSERT INTO product (name, description, price) VALUES
('Apple iPhone 14', 'Latest model with 256GB storage A15 Bionic chip, and improved camera system', 999.99),
('Samsung Galaxy S21', 'Flagship phone with 128GB storage, Exynos 2100, and triple camera setup', 799.99),
('Sony HW-1000XM4', 'Wireless noise-cancelling headphones with up to 30 hours of battery life', 3499.99);
select * from product;
FULL PLAYLIST:
LinkTree:
0:00 Intro
1:25 Model Product Class
2:43 Repository
4:20 Run SQL scripts
5:30 Test in Postman
5:42 rename classes
6:00 HTTP request explained
8:13 DTO Data Transfer Object
9:25 Update CreateProductService
10:47 Update GetProductsService
11:23 new endpoint for GetProductService
13:17 Update UpdateProductService
15:25 Update DeleteProductService
16:23 Update Controller
17:00 Test in Postman
18:34 Test in mySQL Workbench
#java #javaframework #learnjava #learntocode #javatutorial #javaforbeginners #springboot #springboottutorial #javaspringboot #backendframework #backend #backendwebdevelopment #mysql #sql #repository #service #http #httprequest
LinkTree:
SQL scripts:
use nobsv2;
CREATE TABLE product(
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
description VARCHAR(255),
price DOUBLE
);
INSERT INTO product (name, description, price) VALUES
('Apple iPhone 14', 'Latest model with 256GB storage A15 Bionic chip, and improved camera system', 999.99),
('Samsung Galaxy S21', 'Flagship phone with 128GB storage, Exynos 2100, and triple camera setup', 799.99),
('Sony HW-1000XM4', 'Wireless noise-cancelling headphones with up to 30 hours of battery life', 3499.99);
select * from product;
FULL PLAYLIST:
LinkTree:
0:00 Intro
1:25 Model Product Class
2:43 Repository
4:20 Run SQL scripts
5:30 Test in Postman
5:42 rename classes
6:00 HTTP request explained
8:13 DTO Data Transfer Object
9:25 Update CreateProductService
10:47 Update GetProductsService
11:23 new endpoint for GetProductService
13:17 Update UpdateProductService
15:25 Update DeleteProductService
16:23 Update Controller
17:00 Test in Postman
18:34 Test in mySQL Workbench
#java #javaframework #learnjava #learntocode #javatutorial #javaforbeginners #springboot #springboottutorial #javaspringboot #backendframework #backend #backendwebdevelopment #mysql #sql #repository #service #http #httprequest
Комментарии