-->
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: Hibernate Validator and the Nullability Check
PostPosted: Thu Aug 09, 2007 10:57 am 
Beginner
Beginner

Joined: Sun Feb 08, 2004 4:09 pm
Posts: 46
Hibernate version:
3.2.4.sp1

Hi.

It seems that before events are dispatched to validator hibernate runs this Nullability check and then throwing a PropertyValueException when it finds a null value. IMO this is not an expected behavior, at least not for me. Following the DRY principle, my controller doesn't makes any validation regarding to domain objects so null values may be passed to them and the framework behind the controller layer expects no other then InvalidStateException. Any idea on a workaround for this?

Regards,
Thiago Souza


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 09, 2007 12:44 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I haven't found any decent workaround, but if you want to give it a try, patch are welcome :)

_________________
Emmanuel


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.