Coffee with Thorben 2020-01-15 – Association Pitfalls & Enum Mappings
Take your skills to the next level!
The Persistence Hub is the place to be for every Java developer. It gives you access to all my premium video courses, monthly Java Persistence News, monthly coding problems, and regular expert sessions.
to not miss any video.
Association Mapping Pitfalls
The mapping of associations seems easy but there are several pitfalls you should avoid.
Articles mentioned in the video:
- Ultimate Guide – Association Mappings with JPA and Hibernate
- Entity Mappings: Introduction to JPA FetchTypes
- Why you should avoid CascadeType.REMOVE for to-many associations and what to do instead
- How to Choose the Most Efficient Data Type for To-Many Associations – Bag vs. List vs. Set
Question of the Week
Is there a way to make JPA ignore invalid types of enum?