Commited the change for onetomany and manytomany