Apply QueryHints.HINT_READONLY to load operations

Description

This code

does not turn off dirty checking.

However this works as intended

To check it download sample project https://github.com/stsypanov/spring-data-examples and run BaseJpaRepositoryImplFindOneReadOnlyTest.testFindOneReadOnlyTrue_useEntityManager_expectValueNotUpdated

Environment

None

Assignee

Nathan Xu

Reporter

Sergei Tsypanov

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure