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