Mapping Collections with Hibernate and JPA

preview_player
Показать описание
JPA and Hibernate provide 3 main options to map a Collection. If it’s a Collection of other entities, you can model it as a to-many association. This is the most common mapping. But you can also map it as an @ElementCollection or as a basic type. In this video, I will show you all 3 options and explain their advantages and disadvantages.

Like my channel? Subscribe!

Join the free Member Library:

Links mentioned:

Best Practices for Many-to-Many Associations with Hibernate and JPA:

Want to connect with me?

#Mapping #Collections #JPA #Hibernate
Рекомендации по теме
Комментарии
Автор

How to update collection entity instead of updating entire entity ? Means i just wan to update only authors, without calling all data from database.

sahilpatil
Автор

I have product table have to list of values

Like list of accounts
Like list of categories

How to mapped

scriptit