Description:
|
The
Cascaded validation via _
@
Valid annotation
Valid_
should
implement
allow to transform validated groups when traversing from one object to
the
group attribute in order
other. Something like:
{code} public class User { @Valid @ConvertGroup.List( { @ConvertGroup(from=Default.class,
to
make validation completely annotation driven
=BasicPostal
.
Currently
class)
,
we need
@ConvertGroup(from=Complete.class,
to
manually call the validate method on the validator if we want
=FullPostal.class) } ) Set<Address> getAddresses() { ... } } {code}
{code} public class User { @Valid @ConvertGroup( from={Default.class, Complete.class},
to
validate based on groups
={BasicPostal
.
class, FullPostal.class} ) Set<Address> getAddresses() { ... } } {code}
|