\begin{tikzpicture} \umlemptyclass{A} \umlemptyclass[x=4,y=2]{B} \umldep[geometry=-|]{A}{B} \umlassoc[geometry=-|, anchors=30 and 300, name=assoc1]{A}{B} \umlassoc[geometry=-|, anchors=-30 and -60, name=assoc2]{A}{B} \end{tikzpicture}