Hi I have a situation in which I have list of animals entity then i have created a list of sibling animals from association with animal entity. So Next time when I am creating new sibling animal object i should not able to assign already sibling animals. for example I have lion, tiger, cat, dog, zebra. Sibling Animal object 1 for that i picked tiger and Cat. so next Time if I try to map Tiger with Lion. I should get an error message that tiger is already mapped. I try to that by using two loops in first loop i am iterating the Sibling animal list and in second loop i am iterating the current object in our scenario tiger and Lion. But i am getting the desired result. How can i write, I am thinking to write third loop in which Individual Animal I should compare but not sure how to acheive
↧