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