i generated domain objects schema (request & response) using jaxb (maven-jaxb2-plugin)
add validations (notnull /empty) couple of attributes. have custom bean validation, application rest service, i'm using spring 3 , jsr 303 dont think can use jsr 303 validate object generated schema.
can give me nudge in right direction on how done.
we've been using krasa jaxb plugin generate jsr 303-annotated model beans xsd files, , telling spring automatically validate input beans. results in nice, terse, dry code if have xsds.
Comments
Post a Comment