Query throwing org.hibernate.NonUniqueResultException instead of javax.persistence.NonUniqueResultException

org.hibernate.query.Query throws org.hibernate.NonUniqueResultException instead of javax.persistence.NonUniqueResultException, violating it’s contract.