-->
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.  [ 4 posts ] 
Author Message
 Post subject: [Validator] User.hbv.xml, jboss rules, and non-annotation
PostPosted: Tue Jan 08, 2008 5:28 pm 
Regular
Regular

Joined: Fri Jul 30, 2004 4:02 pm
Posts: 50
Hey all,

I'm playing with the Hibernate Validator tools, and it appears that presently it only supports annotations.

Since validation is much more a business-specific scenario rather than code specific, this surprises me. Are there other alternatives outside of annotation for using hibernate validations (rather than commons-validator or some of the others)?

My expectation would be either something like User.hbv.xml (hibernate validation xml file) that can be digested and used in various XSLT/programmed editors so business users can modify the validation rules as necessary (rather than the coders through annotation). Or, alternatively, using something like Jboss Rules as a 'validation rules engine' (not sure if that is a good idea or not).

Feedback on alternatives please...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 09, 2008 7:04 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
If your user all of the sudden decides that a previously nullable property is now not null, you are in big big trouble if you let a business user just update an XML file. What about the existing data? They probably deserve some adjustment.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 09, 2008 9:13 am 
Regular
Regular

Joined: Fri Jul 30, 2004 4:02 pm
Posts: 50
Is there a way to create a report/list of the presently implemented validations (i.e. not troll through java code and re-document)?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 09, 2008 7:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
JavaDoc is I guess addressing your concerns

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.