2009/6/20 Gary Brunton <[email protected]> > > @Fabio > Um... I'm a little confused. Isn't the delegation of validation to > the persistant layer a side effect of nhibernate.validator? In fact > isn't that one of the stated benfits of using nhv over other > validation frameworks?
Not, it isn't. Two years ago Dario have implemented an example about out use VAB in NH listeners to do the same. The advantage to use NHV is integration with schema, some specific feature of NHV and the most important is that NHV know how work NH and when something really need to be validated. > In my problem I would actually like to stop the delegation but entity > constraints are checked automatically when being persisted. Are you > saying that you wouldn't use this feature of nhv? I'm using event integration only for tests. In production the validation happen 2 or 3 levels over NH. -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
