|
Hardy, it would be nice to have something like:
<bean class="com.my.User" ignore-annotations="true"> <field name="email"> <constraint annotation="javax.validation.constraints.Pattern"> <element name="regexp"> <constant static-field="Regexps.EMAIL_REGEXP"/> </element> </constraint> </field> ..... </bean>
|