Spring Boot Restful + PostgreSQL + JPA @OneToMany @ManyToOne and 3 Ways to Save Records - Part 3

preview_player
Показать описание
In this video I have shown how we can create a parent child relationship between 2 entities and number of ways we can insert records in table when entities have this parent child relationship. Topics covered:

Implementation of annotation @OneToMany
Implementation of annotation @ManyToOne
@JoinColumn annotation properties
3 ways to save records in a table.
Рекомендации по теме
Комментарии
Автор

I thank you, I had been dealing with the problem of deserializing objects in angular for spring boot for a week and you solved my life, great (y)

junniorsamirniquinvaldez
Автор

You may have saved me with this video. I have been stuck with the a problem I believe you may have answered. Thank you

SD-gwvm
Автор

Thank you for sharing your knowledge. It is helpful.

sangtv_AK
Автор

Thank you you are hero, your tutorial is the one among the best it's free of error and easy. I subscribed to your chanel

malektubaishat
Автор

Could you tell us, how can we get a list of cities from specified country via API endpoint? And how can we also get city with specified id of specified county via API too?

Thanks a lot! Very helpful tutorial and great explanation!

WaclawShuminski
Автор

how do we create a one to one relationship? i can't find your explaination about this anywhere. thank you for your help

pietro
Автор

what should be the query if I want the list of countries which has rows in cities

Inquisitivekushal
Автор

if i added many to one inside City, then why would i need to also add one to many?İs not only one of them is enough?

programmer
Автор

Can you please clarify this question, Your passing City ID but think that user don't know the city ID he will enter the City Name. and also your not creating any foreign key relation on table. is there any reason

srij
Автор

Hey bro when I save it returns the child id and other properties of the child are null what is the broblem

somalideveloper
Автор

how can we do this with hibernate session factory

zaid
Автор

Hi, i want to insert jsonb data in postgress DB, then how our entity class will be ,
I tired multiple ways but it is give me some EXECPTIONS
there is no such kind of videos in you tube, could you please create one video on this .
CREATE TABLE Employe (
id int NOT NULL PRIMARY KEY,
name VARCHAR ( 500 ),
EntryJson jsonb NOT NULL
);
how to insert multiple records for above query, fetch multiple records from above query.

venkateshneelam
Автор

Bro. Can you please help me solve this question? Thanks.

jianhe
Автор

if we want to add country (in which has many cities) in this case how we can do it please

boh
Автор

hello please i'm working with jwt in this case what I need to add in UserDetailsImpl ?

boh