Implement hashcode in PGObject

equals have been overloaded but not hashcode.We need hashcode for usage in map. Thank you.