title: Type mismatch: cannot convert from String to long
body: <p>I am getting the above error when I am trying to set a flag and returning the value of the flag.I am writing the code below:</p>
  
  <pre><code>public static long insertEpaymentResDtls(PortalEpaymentResVO portalEpaymentResVO) {
      // TODO Auto-generated method stub
      String flag = null;
      SppPaymentRequestKiosk sppPaymentRequestKiosk = new SppPaymentRequestKiosk();
      SppUserEformData sppUserEformData = new SppUserEformData();
      sppUserEformData = genericDao.findById(SppUserEformData.class, SppUserEformDataId.class,
              new SppUserEformDataId(portalEpaymentResVO.getMtrxId(), portalEpaymentResVO.getOxitrxId(), Integer.parseInt(portalEpaymentResVO.getTrxStatus())));
      try
          {
          if (sppPaymentRequestKiosk != null)
              {
              sppPaymentRequestKiosk.setStatus(portalEpaymentResVO.getTrxStatus());
              }
          sppPaymentRequestKiosk = genericDao.save(sppPaymentRequestKiosk);
          if (sppPaymentRequestKiosk != null)
              {
              flag = "Success";
              }
          }
      catch (Exception e)
          {
          GLOGGER.error("Exceptin occured at the time of updateStatus in EformServiceImpl." + e.getMessage());
          }
      return flag;//ERROR IN THIS LINE
      }
  </code></pre>
  
  <p>This is the code fragment.Please help.</p>