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