public ArrayList findAllByStudyGroupClassAndGroup(int studyGroupClassId, int studyGroupId) {
   setTypesExpected();
   this.setTypeExpected(11, TypeNames.STRING);
   HashMap variables = new HashMap();
   variables.put(new Integer(1), new Integer(studyGroupClassId));
   variables.put(new Integer(2), new Integer(studyGroupId));
   ArrayList alist = this.select(digester.getQuery("findAllByStudyGroupClassAndGroup"), variables);
   ArrayList al = new ArrayList();
   Iterator it = alist.iterator();
   while (it.hasNext()) {
     HashMap hm = (HashMap) it.next();
     SubjectGroupMapBean eb = (SubjectGroupMapBean) this.getEntityFromHashMap(hm);
     eb.setSubjectLabel(((String) hm.get("label")));
     al.add(eb);
   }
   return al;
 }
 public SubjectGroupMapBean findAllByStudySubjectAndStudyGroupClass(
     int studySubjectId, int studyGroupClassId) {
   setTypesExpected();
   this.setTypeExpected(11, TypeNames.STRING);
   this.setTypeExpected(12, TypeNames.STRING);
   HashMap variables = new HashMap();
   variables.put(new Integer(1), new Integer(studySubjectId));
   variables.put(new Integer(2), new Integer(studyGroupClassId));
   ArrayList alist =
       this.select(digester.getQuery("findByStudySubjectAndStudyGroupClass"), variables);
   SubjectGroupMapBean eb = null;
   Iterator it = alist.iterator();
   while (it.hasNext()) {
     HashMap hm = (HashMap) it.next();
     eb = (SubjectGroupMapBean) this.getEntityFromHashMap(hm);
     eb.setStudyGroupName(((String) hm.get("group_name")));
     eb.setGroupClassName(((String) hm.get("class_name")));
   }
   return eb;
 }