Give record a hashcode & equals