added code generation for uni-directional assocs