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