Hi!

I have got the following structure [simplified]:

public class Bar {
    [NotNull]
    public int TestValue;
    public Foo FooBar;
}

public class Foo{
    [NotNull]
    public string Message;
}


NHibernate.Validator successfully validates the Bar class including
TestValue which has the well-known type INT. But if i save the whole
object (including the attached Foo object), Foo.Message does not get
validated.

Do I really have to write a custom Validation Class for Foo - even if
Foo.Message is a string Type?

Thanks for your help!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to