Package org.hibernate.validator.cfg.defs

Examples of org.hibernate.validator.cfg.defs.Mod10CheckDef


    final HibernateValidatorConfiguration config = getConfiguration( HibernateValidator.class );
    ConstraintMapping mapping = config.createConstraintMapping();
    mapping.type( Product.class )
        .property( "productNumber", FIELD )
        .constraint(
            new Mod10CheckDef()
                .multiplier( 3 )
                .weight( 1 )
                .startIndex( 0 )
                .endIndex( 12 )
                .checkDigitIndex( -1 )
View Full Code Here

TOP

Related Classes of org.hibernate.validator.cfg.defs.Mod10CheckDef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.