After saving the changed username (using flush:true), the following expression evaluates to false:
User.get(u.getId()).name == u.refresh().name
The left side takes the changed username, and the right side returns the "old" value.
Ideas? Updating the operation of "u" in the following HTTP request will work.
Jonas
source
share