@Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long subscriptionId = (Long) attributes.get("subscriptionId");

    if (subscriptionId != null) {
      setSubscriptionId(subscriptionId);
    }

    Long companyId = (Long) attributes.get("companyId");

    if (companyId != null) {
      setCompanyId(companyId);
    }

    Long userId = (Long) attributes.get("userId");

    if (userId != null) {
      setUserId(userId);
    }

    String userName = (String) attributes.get("userName");

    if (userName != null) {
      setUserName(userName);
    }

    Date createDate = (Date) attributes.get("createDate");

    if (createDate != null) {
      setCreateDate(createDate);
    }

    Date modifiedDate = (Date) attributes.get("modifiedDate");

    if (modifiedDate != null) {
      setModifiedDate(modifiedDate);
    }

    Long classNameId = (Long) attributes.get("classNameId");

    if (classNameId != null) {
      setClassNameId(classNameId);
    }

    Long classPK = (Long) attributes.get("classPK");

    if (classPK != null) {
      setClassPK(classPK);
    }

    String frequency = (String) attributes.get("frequency");

    if (frequency != null) {
      setFrequency(frequency);
    }
  }
 public void setPrimaryKey(long primaryKey) {
   setSubscriptionId(primaryKey);
 }