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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user