Prefer Set Instead of List in @ManyToMany Associations
Description: This is a Spring Boot example of removing rows in case of a bidirectional @ManyToMany using List, respectively Set. The conclusion is that Set is much better! This applies to unidirectional as well!
Key points:
- using
Setis much more efficent thanList


