Mapping Collections with Hibernate and JPA

Опубликовано: 18 Февраль 2021
на канале: Thorben Janssen
4,764
145

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!
➜ http://bit.ly/2cUsid8

Join the free Member Library:
https://goo.gl/dtyIIC

Links mentioned:
Eager vs Lazy Loading in Hibernate and JPA : https://thorben-janssen.com/entity-ma...

How to Choose the Most Efficient Data Type for To-Many Associations – Bag vs. List vs. Set: https://thorben-janssen.com/associati...

Map Associations with JPA and Hibernate – The Ultimate Guide: https://thorben-janssen.com/ultimate-...

Best Practices for Many-To-One and One-To-Many Association Mappings: https://thorben-janssen.com/best-prac...

Best Practices for Many-to-Many Associations with Hibernate and JPA:
https://thorben-janssen.com/best-prac...

Read the accompanying post: https://thorben-janssen.com/collectio...

Want to connect with me?
Blog: https://thorben-janssen.com/
Twitter:   / thjanssen123  
Facebook:   / thorbenjanssenofficial  
Linkedin:   / thorbenjanssen  

#Mapping #Collections #JPA #Hibernate