#12. Hibernate One to Many Mapping Annotation Example

preview_player
Показать описание
In this video tutorial, we will learn how to implement step by step one-to-many entity mapping using JPA, Hibernate 5 and MySQL database.

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

Can you explain why you created a joincolumn in an employee not in Account?
As per my understanding joincolumn creates a foreign key in that table where we write this annotations so it should be on the account table right ?

dattabadhe
Автор

Do I understand correctly that if there are two entities with a One-to-Many relationship, such as Employee and EmployeePhones. Then you need to receive such data on the server in DTO with one call, but with two separate json? And write down one by one: first the employee, get the ID from the saved employee, and then we record the phones using this ID for communication.

Das.Kleine.Krokodil
Автор

I think I hibernate4 for one to many relationship no need to create new table to store the mapping keys,
It's required for many to many relationship
Can you please clarify?

tejach
Автор

Why do you have so many differences in blogs and on youtube videos?

dattabadhe
Автор

Hi sir, good Explaination
But i want to know these is Bi-directional Or Uni-directional mapping...?

shrikantpradhan
Автор

Nice presentation and explained in detail.

meenajadhav