query.setInteger("assignmentId", assignment.getNumericId().intValue());
Integer assignmentNumericId = assignment.getNumericId(); int id = assignmentNumericId.intValue(); query.setInteger("assignmentId", id);
  Set getLimitValues(Assignment assignment)  {    Query query;    List resultList;    try    {      query      	= session          	.createQuery          		("from edu.internet2.middleware.signet.AssignmentLimitValue"               + " as assignmentLimitValue"               + " where assignmentID = :assignmentId");      query.setInteger("assignmentId", assignment.getNumericId().intValue());      resultList = query.list();    }    catch (HibernateException e)    {      throw new SignetRuntimeException(e);    }    Set resultSet = new HashSet(resultList);    Set limitValues = new HashSet();    Iterator resultSetIterator = resultSet.iterator();    while (resultSetIterator.hasNext())    {      AssignmentLimitValue alv      	= (AssignmentLimitValue) (resultSetIterator.next());      Limit limit = null;            Query singleLimitQuery;      List singleLimitResultList;      try      {        singleLimitQuery = session            .createQuery("from edu.internet2.middleware.signet.LimitImpl"                + " as limit" + " where limitID = :id");        singleLimitQuery.setString("id", alv.getLimitId());        singleLimitResultList = singleLimitQuery.list();      }      catch (HibernateException e)      {        throw new SignetRuntimeException(e);      }      Set singleLimitResultSet = new HashSet(singleLimitResultList);      Iterator singleLimitResultSetIterator = singleLimitResultSet.iterator();      while (singleLimitResultSetIterator.hasNext())      {        limit = (Limit)(singleLimitResultSetIterator.next());      }            limitValues.add(new LimitValue(limit, alv.getValue()));    }    return limitValues;  }