This commit is contained in:
Peter Hormanns 2012-06-12 10:54:43 +00:00
parent c64ab570a1
commit 7aa3dfc2a9

View File

@ -100,7 +100,7 @@ public class GenericModuleImpl implements ModuleInterface {
Object valueObject = method.invoke(anEntity);
if (valueObject instanceof String) {
if (!Pattern.matches(fieldValidation.value(), (String) valueObject)) {
throw new HSAdminException("validation of field " + f.getName() + " failed");
throw new HSAdminException("validation of field " + f.getName() + " failed, pattern: " + fieldValidation.value());
}
}
} catch (Exception e) {