[case 9488] Implmented hashCode for entities