JSR-303 Bean Validation annotate multiple fields

前端 未结 2 1491
无人及你
无人及你 2021-01-07 15:15

I\'ve just started testing JSR-303 Bean validation and was wondering if something was possible. We have a default regular expression in our app for all String fields. If I

2条回答
  •  天命终不由人
    2021-01-07 16:05

    I didnt use but java supporting scripting in server side using grovvy ,javascript.. .You can check @ScriptAssert(lang = "javascript", script =_this.startDate.before(_this.endDate) scripting annotation which is hibernate annotation.

提交回复
热议问题