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