model/view: implement ClassRelation