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