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

Status

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