java - JSR-303 validation using an OR relationship -


i have field in bean either null, or date in past. jsr-303 provides annotations null , past, if apply both never validate because can't both null , past. combine validations in or relationship. i'm pretty sure i'll have create own validator implementation that, i'm hoping i'm missing , 1 of can show me how combine existing validators in or relationship.

all of default jsr-303 annotations allow null through. (except, obviously, notnull!) using @past implicitly "in past, or null."


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -