added foreign key support to hibernate classes (NodeLink)