@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 Stationofficer)) {
            return false;
        }
        Stationofficer other = (Stationofficer) object;
        if ((this.stationOfficerID == null && other.stationOfficerID != null) || (this.stationOfficerID != null && !this.stationOfficerID.equals(other.stationOfficerID))) {
            return false;
        }
        return true;
    }