public static webdsl.generated.domain.ValidationException ent_Customer_objCr5_() { webdsl.generated.domain.ValidationException obj0 = webdsl.generated.domain.ValidationException._static_createEmpty_(); obj0.ValidationException_(); obj0.setMessage("Value exceeds maximum length (" + 255 + ")"); return obj0; }
public void validateSave() { webdsl.generated.domain.ValidationExceptionMultiple mex = this.validateSave_(); java.util.List<webdsl.generated.domain.ValidationException> ex = mex.getExceptions(); java.util.List<utils.ValidationException> exceptions = new java.util.LinkedList<utils.ValidationException>(); for (webdsl.generated.domain.ValidationException v : ex) { exceptions.add(new utils.ValidationException(null, v.getMessage())); } if (exceptions.size() > 0) { throw new utils.MultipleValidationExceptions(exceptions); } }