Added the hashCode and equals methods to EntityEntry.