Package com.github.jmkgreen.morphia.mapping.validation

Examples of com.github.jmkgreen.morphia.mapping.validation.ConstraintViolationException


    public void prePersist(final Object ent, final DBObject dbObj,
        final Mapper mapr) {
      @SuppressWarnings("rawtypes")
      final Set validate = validatorFactory.getValidator().validate(ent);
      if (!validate.isEmpty()) {
        throw new ConstraintViolationException(validate);
      }
    }
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.mapping.validation.ConstraintViolationException

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.