2 Replies Latest reply on Apr 7, 2009 11:32 PM by Francisco Jose Peredo Noguez

    How to turn it Off?: @Annotation base validation

    Francisco Jose Peredo Noguez Master

      How do I turn off Hibernate @Annotation validation?
      My problem is simple, in CRUD I only need it enabled for the forms where I Create and Update but not for the forms where I Read and Delete (in fact, I need a completely different validation in each case, but for now, I just want to turn it off in my query by example (Read) forms...


      Why? well,because, for exampel in the Create form, it makes sense to make the name of the Project mandatory, but in the query by example (Read) I leave it empty to indicate that I want any project regardless of its name.


      How do I do that? How do you guys do this?