joinId.setText(fullPath);
context.switchToMarker(joinMarker, false);
if (inner) {
EJBQLJoin join = new EJBQLInnerJoin(-1);
join.jjtAddChild(path, 0);
join.jjtAddChild(joinId, 1);
getJoinAppender().visitInnerJoin(join);
this.lastAlias = context.getTableAlias(fullPath, currentEntity
.getDbEntityName());
}
else {
EJBQLJoin join = new EJBQLOuterJoin(-1);
join.jjtAddChild(path, 0);
join.jjtAddChild(joinId, 1);
getJoinAppender().visitOuterJoin(join);
Relationship lastRelationship = currentEntity
.getRelationship(lastPathComponent);
ObjEntity targetEntity = (ObjEntity) lastRelationship.getTargetEntity();