I\'m getting a warning in the Server log \"firstResult/maxResults specified with collection fetch; applying in memory!\". However everything working fine. B
To avoid this WARNING you have to change the call getSingleResult to getResultList().get(0)
getSingleResult
getResultList().get(0)