Issue Type: Improvement Improvement
Affects Versions: 1.1.0.CR2
Assignee: Emmanuel Bernard
Components: spec-general
Created: 15/Mar/13 2:17 PM
Description:

It should be possible to define a purely composed constraint like this:

@Target({ METHOD, CONSTRUCTOR })
@Retention(RUNTIME)
@Constraint(validatedBy = {})
@Documented
@ScriptAssert(alias="args", lang="", script="", validationAppliesTo=ConstraintTarget.PARAMETERS)
public @interface ParameterAssert {

	String message() default "{org.hibernate.validator.constraints.ParameterAssert.message}";

	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };
	
	@OverridesAttribute(constraint=ScriptAssert.class, name="lang")
	String lang();

	@OverridesAttribute(constraint=ScriptAssert.class, name="script")
	String script();
}

Currently semantics are not defined how the validation target of PARAMETERS is to be specified in this case.

Fix Versions: 1.1
Project: Bean Validation
Priority: Major Major
Reporter: Gunnar Morling
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira