JPA Repository: javax.persistence.NonUniqueResultException: result returns more than one elements
It appears that the problem was that Map<ContentType, Integer>
does not have a promise of a unique index, so JPA doesn't like mapping to it. By using List<Map<ContentType, Integer>>
instead, it works great!