Also, getSingleResult also throws org.hibernate.NonUniqueResultException which isn't translated to a javax.persistence.NonUniqueResultException.