implemented equals and hashCode for Resource/Id to enable them be used
in Choices