-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Labels
Description
Even when a controller method has the Transactional(readOnly = true) annotation, the object is being updated.
This is how the method looks like:
@Transactional(readOnly = true)
def validate(Club club) {
club.validate()
respond club
}
and doing this call:
echo '{"id": -6934245603440287743, "name": "FC Bayern Münchenn"}' | http PUT http://localhost:8080/neo4j-app/clubs/-6934245603440287743/validate
it updates the club's name even when the method is readonly.
It looks that it's not considering the @transactional(readOnly = true) on binding, just it is when entering the method.