Fixed tabs to spaces; it is evil that eclipse comes with this sort of default...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2008-02-18 12:34:08 +00:00
parent d7a13bb823
commit 80acfcb716
4 changed files with 189 additions and 189 deletions
@@ -649,16 +649,16 @@ public class ModelEntity extends ModelInfo implements Comparable<ModelEntity>, S
}
public List<ModelRelation> getRelationsList(boolean includeOne, boolean includeOneNoFk, boolean includeMany) {
List<ModelRelation> relationsList = FastList.newInstance();
Iterator<ModelRelation> allIter = this.getRelationsIterator();
List<ModelRelation> relationsList = FastList.newInstance();
Iterator<ModelRelation> allIter = this.getRelationsIterator();
while (allIter.hasNext()) {
ModelRelation modelRelation = allIter.next();
if (includeOne && "one".equals(modelRelation.getType())) {
relationsList.add(modelRelation);
relationsList.add(modelRelation);
} else if (includeOneNoFk && "one-nofk".equals(modelRelation.getType())) {
relationsList.add(modelRelation);
relationsList.add(modelRelation);
} else if (includeMany && "many".equals(modelRelation.getType())) {
relationsList.add(modelRelation);
relationsList.add(modelRelation);
}
}
return relationsList;