As a user of {{@ScriptAssert}} and {{@ParameterScriptAssert}}, I'd like to be able to override the target property/parameter of the constraint violation message, without having to implement a custom constraint validator:
{code :java } @ScriptAssert(lang="javascript", script = "_this.end > _this.start", reportOn="end") public class Interval { int start; int end; } {code} This constraint violation would be reported on the {{end}} property instead of the class itself. |
|