-->
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: Multi-valued constraints and processing order
PostPosted: Sun Mar 30, 2008 12:32 am 
Newbie

Joined: Sun Mar 30, 2008 12:19 am
Posts: 15
Looking specifically at the Patterns example given, it may be desirable for an implementation to attempt to optimize the validation of a list of patterns or tokens.

It should be specified that annotations specifying a ConstraintValidator have the constraint validator take precedence over the scanning of an annotation "value" for an array of constraint annotations. This way a @Patterns annotation, with appropriate constraint validator, could be built to optimize the matching of a set of patterns and be treated as a single validator.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 01, 2008 11:09 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I see what you mean, good point.
But I suspect in this case, you might want to build your own @Pattern annotation that is not annotated with @ConstraintValidator.

_________________
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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.