Default implementation of equals, which compares the id's.
True if id of both resources are equal.
The other resource