@Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Policeofficer)) {
            return false;
        }
        Policeofficer other = (Policeofficer) object;
        if ((this.policeOfficerID == null && other.policeOfficerID != null) || (this.policeOfficerID != null && !this.policeOfficerID.equals(other.policeOfficerID))) {
            return false;
        }
        return true;
    }