After saving a changed user name (using flush:true
), the following expression evaluates to false:
User.get(u.getId()).name == u.refresh().name
The left hand side picks up the changed user name while the right hand side return the "old" value.
Ideas? Refreshing the "u" reference in the next HTTP request appears to work.