Salut Antoine,
yes it is possible, Apache BeanValidation contains a Guice-JSR303
bridge, have a read at
http://incubator.apache.org/bval/cwiki/obtaining-a-validator.html
In the doc the used version is outdated, I'll fix it ASAP, use instead:

<dependency>
    <groupId>org.apache.bval</groupId>
    <artifactId>bval-guice</artifactId>
    <version>0.2-incubating</version>
</dependency>

HTH, have a nice day,
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Wed, Dec 8, 2010 at 5:08 PM, Antoine DESSAIGNE
<[email protected]> wrote:
> Hi everyone,
> I'm using the new guice-persist extension and it's pretty amazing. I love it
> when you have pretty much nothing to do to make things works.
> But i was wondering: is it possible to perform a bean validation (using
> javax.validation) before saving something in the database ?
> Thanks a lot for this insight,
> Antoine.
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> 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-guice?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
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-guice?hl=en.

Reply via email to