public WOComponent addRelationship() { return null;
public void addRelationship(EOEntity selectedEntity, EOEntity targetEntity, EOAttribute foreignAttribute, boolean isToMany, boolean addBack) { String targetName = targetEntity.name().toLowerCase(); String selectedName = selectedEntity.name().toLowerCase(); EOAttribute selectedPK = (EOAttribute)selectedEntity.primaryKeyAttributes().objectAtIndex(0);  if(foreignAttribute == null) { foreignAttribute = addAttributeNamed(targetEntity, selectedName+"id", selectedPK.prototype()); }  EORelationship relationship = new EORelationship(); relationship.setName(targetName+(isToMany ? "s" : "")); selectedEntity.addRelationship(relationship);   EOJoin join = new EOJoin(selectedPK, foreignAttribute); relationship.addJoin(join); relationship.setToMany(isToMany); relationship.setJoinSemantic(EORelationship.InnerJoin);  if(addBack) { relationship = new EORelationship(); join = new EOJoin(foreignAttribute,selectedPK); relationship.setName(selectedName); targetEntity.addRelationship(relationship); relationship.addJoin(join); relationship.setToMany(false); relationship.setJoinSemantic(EORelationship.InnerJoin); }
        public WOComponent addRelationship() {            return null;        }