added getOneToMany and getManyToMany to Entity