// non-derived DbEntities...
// TODO: this is inefficient.. we need targeted validation
// instead of doing it on the whole project
Validator validator = ((ProjectController) getParent())
.getProject()
.getValidator();
int validationCode = validator.validate();
if (validationCode >= ValidationDisplayHandler.WARNING) {
for (ValidationInfo nextProblem : validator.validationResults()) {
Entity failedEntity = null;
if (nextProblem.getValidatedObject() instanceof DbAttribute) {
DbAttribute failedAttribute = (DbAttribute) nextProblem
.getValidatedObject();