+ "     hs.subjectID      = :id     " + " and hs.subjectTypeID  = :type   "
+ "     hs.subjectId      = :id     " + " and hs.subjectTypeId  = :type   "
  protected static HibernateSubject find(String id, String type)    throws  HibernateException,            SubjectNotFoundException  {    Session hs  = HibernateHelper.getSession();    Query   qry = hs.createQuery(      "from HibernateSubject as hs where  "       + "     hs.subjectID      = :id     "      + " and hs.subjectTypeID  = :type   "    );    qry.setCacheable(false);  // TODO    qry.setString(  "id"    , id    );    qry.setString(  "type"  , type  );    List    l   = qry.list();    if (l.size() == 1) {      HibernateSubject subj = (HibernateSubject) l.get(0);      return subj;     }     hs.close();    throw new SubjectNotFoundException("could not find subject: " + id + "/" + type);  } // protected static HibernateSubject find(id, type)