hint for HQL that data from SQL query is higher priority and should replace those in memory

Description

I've some entities loaded in memory, then I execute some heavy SQL that generates data and because it affected a lot of entities, I would like to refresh the entities using HQL, not by calling `EntityManager.refresh()`.

There are probably a lot of projects that would break if this change became the default, so I guess some query hint would be good enough.

Thanks for considering

Environment

None

Status

Assignee

Unassigned

Reporter

Filip Procházka

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure