Package com.google.code.morphia.validation

Examples of com.google.code.morphia.validation.MorphiaValidation


        this.packageName = packageName;
    }

    public Morphia createInstance(){
        Morphia morphia = new Morphia();
        MorphiaValidation morphiaValidation = new MorphiaValidation();
        morphiaValidation.applyTo(morphia);
        return morphia.mapPackage(packageName);
    }
View Full Code Here


    @Override
    protected Morphia createInstance() throws Exception {
        Morphia m = new Morphia();

        // lightweight wrapper around the JSR303 API Validation Extension
        new MorphiaValidation().applyTo(m);

        if (mapPackages != null) {
            for (String packageName : mapPackages) {
                m.mapPackage(packageName, ignoreInvalidClasses);
            }
View Full Code Here

TOP

Related Classes of com.google.code.morphia.validation.MorphiaValidation

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.