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