-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Validating one property against another NHibernate Validator
PostPosted: Sat Nov 22, 2008 11:38 pm 
Newbie

Joined: Sat Nov 22, 2008 11:32 pm
Posts: 2
I'm playing around with NHibernate Validator 1.0.0.GA . I haven't seen any examples nor been able to figure out how to validate one property against another. For instance:

Code:
class Person{
...
DateTime birthdate;
DateTime deathdate;
...
}



How do I validate that deathdate is always after birthdate?

Thanks,
Noah


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 9:19 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi, sorry the NHibernate validator experts will probably not see this as you are in the wrong forum; please use http://forum.hibernate.org/viewforum.php?f=25

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.