Package br.net.woodstock.rockframework.domain.validator.jpa.impl

Examples of br.net.woodstock.rockframework.domain.validator.jpa.impl.EntityValidatorImpl


  protected BusinessResult validate(final Entity entity, final Operation operation) {
    Assert.notNull(entity, "entity");
    Assert.notNull(operation, "operation");

    EntityValidator validator = new EntityValidatorImpl(operation);
    Collection<ValidationResult> results = validator.validate(entity);
    if (results.size() > 0) {
      ValidationResult result = results.iterator().next();
      return new BusinessResult(true, result.getMessage());
    }
View Full Code Here


  protected BusinessResult validate(final Entity entity, final Operation operation) {
    Assert.notNull(entity, "entity");
    Assert.notNull(operation, "operation");

    EntityValidator validator = new EntityValidatorImpl(operation);
    Collection<ValidationResult> results = validator.validate(entity);
    if (results.size() > 0) {
      ValidationResult result = results.iterator().next();
      return new BusinessResult(true, result.getMessage());
    }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.domain.validator.jpa.impl.EntityValidatorImpl

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.