In order to make sure entities of same type, having the same name are equals, these two methods have been override to make sure that Sets contains only one object with a specific name.