> // Setters to be added in jOOQ 3.0. If the boolean argument is false,
> the "original" value will be set to the "current" value as well
> void changed(boolean)
> void changed(boolean, Field<?>)
> void changed(boolean, int)
> void changed(boolean, String)
>
> This is now ticket #1999:
> https://github.com/jOOQ/jOOQ/issues/1999

Hmm, let's think a bit further about this. From a user perspective, I
might expect the setter of the changed flag to actually reset the
value to its original. I.e. changed(false) might be expected to
produce any of these behaviours:

a) isChanged = false; value = original; // What one might expect
b) isChanged = false; original = value; // What you need

>From an API perspective, b) is probably more consistent and less
surprising. But that makes me think of adding these methods for
behaviour a: reset(), reset(Field<?>), reset(int), reset(String)

Any thoughts?

Reply via email to