Skip to content

Readonly Transaction being committed #580

@mburak

Description

@mburak

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions