D
dead_rat
Guest
We are trying to update Domain object.
I want to set params to Object and validate it, on success validation save it, on fail - render it on page without saving.
But when I change object's fields and pass it to render, Grails saves it, even if I reject some value of object.
Seteeting Hibernate property flush.mode = 'commit' didn't help.
Question is how to prevent saving object unless I call .save()?
I want to set params to Object and validate it, on success validation save it, on fail - render it on page without saving.
But when I change object's fields and pass it to render, Grails saves it, even if I reject some value of object.
Seteeting Hibernate property flush.mode = 'commit' didn't help.
Question is how to prevent saving object unless I call .save()?