public CreditCourseWiseForm get(int typeID, int relationID) throws CreditCourseWiseSysException {
    String hql =
        "from CreditCourseWiseModel as ccwm"
            + " where ccwm.comp_id.typeid="
            + typeID
            + "and  ccwm.comp_id.relationid="
            + relationID;
    List modelList = null;
    List list = new ArrayList();
    CreditCourseWiseForm ccwf = new CreditCourseWiseForm();

    try {
      modelList = HibernateDAO.find(hql);

      if ((modelList != null) && (modelList.size() > 0)) {
        list = getFormList(modelList);
        ccwf = (CreditCourseWiseForm) list.get(0);
      } else {
        return null;
      }
    } catch (ULMSSysException ee) {
      ee.printStackTrace();
    }

    return ccwf; // To change body of implemented methods use File | Settings | File Templates. //To
                 // change body of implemented methods use File | Settings | File Templates.
  }
  public void update(CreditCourseWiseForm ccwf) throws CreditCourseWiseSysException {
    try {
      HibernateDAO.saveOrUpdateCopy(ccwf.getCreditCourseWiseModel());
    } catch (ULMSSysException ese) {
      ese.printStackTrace();
    }

    // To change body of implemented methods use File | Settings | File Templates.
  }
  public void delete(int typeID, int relationID) throws CreditCourseWiseSysException {
    String hql =
        "from CreditCourseWiseModel as ccwm"
            + " where ccwm.comp_id.typeid="
            + typeID
            + " and ccwm.comp_id.relationid="
            + relationID;

    try {
      HibernateDAO.delete(hql);
    } catch (ULMSSysException ese) {
      ese.printStackTrace();
    }

    // To change body of implemented methods use File | Settings | File Templates.
  }
  public List getAll() throws CreditCourseWiseSysException {
    String hql = "from CreditCourseWiseModel";
    List modelList = null;
    List list = new ArrayList();

    try {
      modelList = HibernateDAO.find(hql);

      if ((modelList != null) && (modelList.size() > 0)) {
        list = getFormList(modelList);
      } else {
        return null;
      }
    } catch (ULMSSysException ee) {
      ee.printStackTrace();
    }

    return list;
  }