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