this.fullPath = fullPath + '.' + lastPathComponent;
if (oldPath != null) {
this.idPath = oldPath;
Relationship lastRelationship = currentEntity
.getRelationship(lastPathComponent);
if (lastRelationship != null) {
ObjEntity targetEntity = (ObjEntity) lastRelationship.getTargetEntity();
this.lastAlias = context.getTableAlias(fullPath, targetEntity
.getDbEntity()
.getFullyQualifiedName());
}
else {
this.lastAlias = context.getTableAlias(oldPath, currentEntity
.getDbEntity()
.getFullyQualifiedName());
}
}
else {
Relationship lastRelationship = currentEntity
.getRelationship(lastPathComponent);
ObjEntity targetEntity = null;
if (lastRelationship != null) {
targetEntity = (ObjEntity) lastRelationship.getTargetEntity();
}
else {
targetEntity = currentEntity;
}