NoResultException does not thrown after updating to 5.2

Description

as described in JPA:

getSingleResult should throw NoResultException, but in Hibernate 5.2 it does not thrown, and returns null instead. my code is:

Environment

Linux JDK8

Activity

Show:
Chris Cranford
June 11, 2016, 8:51 PM
Edited

Also, getSingleResult throws org.hibernate.NonUniqueResultException which isn't translated to a javax.persistence.NonUniqueResultException. I'll fix this too.

Assignee

Chris Cranford

Reporter

Mohsen Kashi

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure