Fixed wrong criteria string format

FEA: ItEr76S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-12-21 11:01:16 +01:00
parent 76dce94860
commit 937e2711d0
2 changed files with 3 additions and 4 deletions

View file

@ -320,7 +320,7 @@ public class Criterion extends IntegrationEntity implements ICriterion,
}
public String getCompleteName() {
return type.getName() + " :: " + name;
return name + "(" + type.getName() + ")";
}
public boolean isActive() {

View file

@ -81,8 +81,7 @@ public class CriterionBandboxFinder extends BandboxFinder implements IBandboxFin
@Transactional(readOnly = true)
public String objectToString(Object obj) {
Criterion criterion = (Criterion) obj;
return criterion.getType().getName() + " :: "
+ getNamesHierarchy(criterion, new String());
return criterion.getCompleteName();
}
@Override
@ -117,7 +116,7 @@ public class CriterionBandboxFinder extends BandboxFinder implements IBandboxFin
Criterion parent = criterion.getParent();
if(parent != null){
etiqueta = getNamesHierarchy(parent,etiqueta);
etiqueta = etiqueta.concat(" -> ");
etiqueta = etiqueta.concat(" > ");
}
return etiqueta.concat(criterion.getName());
}