one-to-many and many-to-one and self join done for iaCase