One possible way of controlling when and what will be validate is through 
the use of Groups (JSR 303). You can create a group and associate all 
validation constraints to that group.


On Friday, September 30, 2011 10:16:40 AM UTC-3, Romain BIARD wrote:
>
> Hi all,
>
> My project has some Entities stored in Mysql and we are using Hibernate 
> Validator as JSR 303 implementation.
>
> My problem is that GWT ServiceLayerDecorator considers that any operations 
> on the database need a complete validation on the objects, even delete (in 
> my case).
>
> Maybe it would be nice if we had the possibility to choose "*FOR A GIVEN 
> METHOD*" declared in a RequestContext to skip the validation and just 
> execute the method, bypassing the validation.
> (maybe with a *@ValidatorPolicy(ValidatorPolicy.SKIPPED)*)
>
> Even if I'm conscious that my DB should not be invalid toward my 
> validators,it is very embarrassing because it need a intervention directly 
> on the DB (validators block the GWT user and even a Administrator could not 
> repair the damages done in the DB through my app).
>
> What do you think about this ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WK106ppVS64J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to