modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DbAttributePathComboBoxEditor.java [164:183]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private DbEntity getFirstEntity(ObjAttribute attribute) {
        Iterator<CayenneMapEntry> it = attribute.getDbPathIterator();
        DbEntity firstEnt = attribute.getDbAttribute().getEntity();
        boolean setEnt = false;

        while (it.hasNext()) {
            Object ob = it.next();
            if (ob instanceof DbRelationship) {
                if (!setEnt) {
                    firstEnt = ((DbRelationship) ob).getSourceEntity();
                    setEnt = true;
                }
            } else if (ob instanceof DbAttribute) {
                if (!setEnt) {
                    firstEnt = ((DbAttribute) ob).getEntity();
                }
            }
        }
        return firstEnt;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java [562:582]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	private DbEntity getFirstEntity() {
		Iterator<CayenneMapEntry> it = attribute.getDbPathIterator();
		DbEntity firstEnt = attribute.getDbAttribute().getEntity();
		boolean setEnt = false;

		while (it.hasNext()) {
			Object ob = it.next();
			if (ob instanceof DbRelationship) {
				if (!setEnt) {
					firstEnt = ((DbRelationship) ob).getSourceEntity();
					setEnt = true;
				}
			} else if (ob instanceof DbAttribute) {
				if (!setEnt) {
					firstEnt = ((DbAttribute) ob).getEntity();
				}
			}
		}

		return firstEnt;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



