Scout
Let Scout do it for you
To-many associations in Hibernate can be mapped with List, Set, Bag, or Map collections, but Map is generally not recommended due to added overhead.
Mapping many-to-many associations as a List causes inefficient database operations when removing elements, as Hibernate deletes and reinserts all association records. Using a Set is recommended for many-to-many associations because it results in more efficient and minimal database changes.