Issue Type: Bug Bug
Affects Versions: 5.0.0.CR1
Assignee: Unassigned
Components: engine
Created: 23/Feb/13 12:08 PM
Description:

Currently the used script language must be set using the lang attribute with each usage of the @ScriptAssert constraint. As often it makes sense to use one and the same language in all constraints of an application, it seems useful to provide a global configuration option for setting a default language:

Validator validator = Validation
    .byProvider( HibernateValidator.class )
    .configure()
    .defaultScriptAssertLanguage("ruby")
    .buildValidatorFactory()
    .getValidator();

The mandatory attribute ScriptAssert#lang)() would be required to have a default value, allowing to omit it when using the constraint.

Fix Versions: 5.x
Project: Hibernate Validator
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