equals and hashcode based on id and uuid