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

Activity

Show:
Nathan Xu
December 21, 2019, 10:18 PM

I created a PR here:

Steve Ebersole
January 6, 2020, 12:52 PM
Edited

Not sure I’d classify this as a bug. They are named QueryHints for a reason. I agree its a worthwhile change, but unless you see documentation somewhere indicating this should be possible I’m re-categorizing this as a RFE

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