How to map an association as a java.util.Map
The java.util.List<SomeEntityClass> is the most common representation of a to-many association with JPA and Hibernate. But is it also the one that you want to use in your domain model? Does it fit your use cases or do you need smarter access to the associated elements? Let’s be honest, a simple java.util.List is good enough…