Have you a test or a show case ? You are doing something wrong somewhere. 2009/10/23 spykketron <[email protected]>
> > I have three classes named MedicalExamination, MedicalExaminationVisit > and MedicalVisit. MedicalExaminationVisit is inherited from > MedicalVisit. MedicalExamination is a property in > MedicalExaminationVisit. > > I tired to save only MedicalExamination, validate method of Nhibernate > Validator works. But when I tried to save MedicalExaminationVisit, the > method does not validate MedicalExamination. > > I use XML files for validation. And in MedicalExaminationVisit.nhv.xml > file I use "Valid" constraint for MedicalExamination as you can see > below. > > <class name="NHValidatorDeneme.MedicalExaminationVisit, > NHValidatorDeneme"> > <property name="MedicalExamination"> > <valid/> > </property> > </class> > > so, how to validate child object using xml files? > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
