NHV: Alpha1

0 views
Skip to first unread message

Fabio Maulo

unread,
May 4, 2008, 5:18:56 PM5/4/08
to nhc...@googlegroups.com
Hi friends.
Now I'm pretty sure that we are not making some sort for disaster using NHV with NH.

NHibernate.Validator1.0.0.Alpha1 can be released.

I think on a possible road-map to NHibernate.Validator1.0.0GA :
- test SharedEngine  initialized by NH in a webApplication .
- test ValidatorEngine thread safety (probably what need to be tread-safe is StateFullClassMappingFactory).
- test Serialization of the ClassValidator and the ValidatorEngine (it must work after deserialization)
- review the internal use of CultureInfo and probably remove it (the user can use the .NET directive).
- remove <valid/> tag from XML (if a property is declared and SholudNeedValidation the valid tag is implicit).
- short circuit for IsValid
- Documentation (especially for the wonderful and flexible way to have message like "The customer, in the invoice, is mandatory")

The documentation is needed even if the use of NHV is so simple like:

    public class Simple
    {       
        [NotNull] public string name;
    }

ValidatorEngine ve = new ValidatorEngine(); // in some where in your app
....
....
Simple mySimple = new Simple();
Assert.IsFalse(ve.IsValid(mySimple));

mySimple.name = "Arturius";
Assert.IsTrue(ve.IsValid(mySimple));

All without any kind of configuration ;)

Bye.
Fabio Maulo

Fabio Maulo

unread,
May 4, 2008, 5:25:49 PM5/4/08
to nhc...@googlegroups.com
I forgot another part of Road-Map:
- test all embedded validators have its message in ebedded resources
- translation of embedded resources (we can use resources of HV and then add ours specific validators message).

Bye.
Fabio Maulo.

Dario Quintana

unread,
May 4, 2008, 9:46:16 PM5/4/08
to nhc...@googlegroups.com
Ok, then can be released.

The documentation is totally incompleted, we have to work on that, if someone have time be my guest.
I've prepared the "translation" of Hibernate.Validator doc here:
https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.Validator/doc/
And using Nant (and having JRE installed) can be built into html and pdf typing: "nant manual". Have a look.
--
Dario Quintana
http://darioquintana.com.ar
Reply all
Reply to author
Forward
0 new messages