EntityManager.refresh should throw EntityNotFoundException if the entity no longer exists in the database

Description

https://github.com/scottmarlow/hibernate-orm/tree/refreshEntityNotFoundException contains the following test case that expects a EntityNotFoundException to be thrown from refresh if the entity is no longer in the database.

The following code change works around the issue:

Javadoc description of EntityManager.refresh(Object)

Environment

None

Assignee

Scott Marlow

Reporter

Scott Marlow

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure