Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Recommended recipe for multi-property validation?
PostPosted: Mon Sep 06, 2010 7:14 pm 
Beginner
Beginner

Joined: Thu Dec 29, 2005 12:08 pm
Posts: 31
Location: Acton, MA
What is the recommended recipe for validating that, for example, either the first name or the last name of a hypothetical Person bean must be non-null?

Best,
Laird


Top
 Profile  
 
 Post subject: Re: Recommended recipe for multi-property validation?
PostPosted: Tue Sep 21, 2010 7:10 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7179
Location: Atlanta, USA
Use a class level constraint.
I did a talk showing just that. I'll likely post the slides and the demo soon.

_________________
Emmanuel
Check Hibernate Search in Action out


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.