Spring Boot One To Many Tutorial with Thymeleaf, Bootstrap and MySQL Database

preview_player
Показать описание
The most comprehensive video tutorial for learning coding CRUD operations on one to many relationships in a Spring Boot application based on Spring Data JPA, Thymeleaf, Bootstrap and MySQL Database.

You will learn how to design one-to-many entity relationship in Java programming with Spring framework, with the entity on the one side is the parent; and the entities on the many side are the children.

You will learn how to code one-to-many CRUD functions for the 3 cases:
- CRUD on many-to-one side with existing parent, i.e. creating new children object with existing parent object (e.g. many to one relationship between products and category).

- CRUD on one-to-many side with existing children, i.e. creating new parent with some existing children (e.g. one to many relationship between brand and categories).

- CRUD on one-to-many side with new children, i.e. creating new parent with new children (e.g. one to many relationship between product and details).

Technologies:
- Spring Boot Web
- Spring Data JPA & Hibernate
- Thymeleaf
- HTML 5 & Bootstrap 4
- MySQL Database

Software programs:
- Java Development Kit (JDK)
- Spring Tool Suite IDE (STS)
- MySQL Community Server & MySQL Workbench

Рекомендации по теме
Комментарии
Автор

This is the best java teaching channel I've ever met, thanks for sharing knowledge !

tuananhdo
Автор

Sir, you saved my life. I had an issue with editing objects after I mapped OneToMany relationship on Thymeleaf, but thanks to you, I fixed it and I learnt a lot of new things, Thank you a lot! You teach better than many paid courses!

dariustinculescu
Автор

this guy is my favorite Youtube Java instructor lmao, goat

ownagejuice
Автор

Thanks a lot from 2022.
This video saved my time. ❤

hasibur
Автор

You helping me a lot, currently developing an Inventory Management System as my thesis. Thank you so much!

jakabl
Автор

Hello sir, thank you for the free tutorial. I have just one question. How can I make a logic of the program when I click on some category, the site will list only the products of that particular category?

Let's say that you have table of categories on the website, with a rows: name and action. Under the "action" row there are some options: edit - delete and "view products of this category". When I click on that "view products of this category" it should redirect to the new table of the products for only that particular category.

Nnn
Автор

Very useful and helpful tutorial. Thank you sir

gabrielrogath
Автор

What if we don't use select option? For example we have users and products. How to assign product to the user how create it automaticlly without select field? Let's say you are now log in as User1 with your credentials and you create anything that should be inserted in the database. How to assign that product to you (your id in the join column) and not to be visible for any other users. So you can see only list of your products, not from another users.

andjelkamladenovic
Автор

Thank you so much for the great tutorial.
Could you make a tutorial please, about calculating the total price of products, which belong to a certain category i.e the total price of each category depending on the number of products inside it.

samiali
Автор

There is always a debate at my project on whether to use DTO/entity class for server side rendering technology like thymeleaf. What is your thought on this?

ngocngo
Автор

And another Project completely done . Lot of things i learn from this course . Thanks "codeJava and Nam Ha Minh" for for sharing knowledge ..

mahmudalhossain
Автор

Hi.
Very helpful tutorial. Thank you.

gzegojbjenchishchikevich
Автор

Thanks for the video.

I'm getting IllegalStateException: Cannot convert value of type 'java.lang.String' to required type CategoryModel for property 'category': no matching editors or conversion strategy found.
if possible can you please share your GIT repo for above.

sumit
Автор

Hello Brother
Int [] quantity =

How can i save quantity type int

javjaksmoke
Автор

ThaNks for your effort and passion in teaching tech especially this content, , i will watch full, if any questions or more related to this i will ask u question ok ☺☺

safwanube
Автор

Tại sao mình thay mappedBy và cascade bằng @JoinColumn thì table category mới update vậy anh? Tại sao ko có mappedBy mà nó ko tạo 1 table mới? Tại sao name column trong @JoinColumn của Brand lại là brand_id luôn vậy ạ.

renlucifer
Автор

Quiero agradecerte por el video, thanks a lot for sharing, greetings from Chile

carlosmarceloaguilasotomay
Автор

very good tutorial ... i want to ask two question though....1. how can we validate a one to many entity to make sure that a product item is selected from category ? 2. can you do a many to many tutorial also ?

tesfayegedle
Автор

1) How use use A foreigns key in tables state, district, city . 2)use state as foreigin key in distirct. Use State and district As Foreign key in City can you share any example link on this.

sonibalwir
Автор

Nice video, thanks a lot my friend. You are the best

faicalyahia