Transaction tx;  System.out.println("DEBUG: HousekeepingInterceptor.postFlush():"); while (entities.hasNext()) { Object entity = entities.next();  if (entity instanceof AssignmentImpl) { AssignmentImpl assignment = (AssignmentImpl)entity;  if (assignment.hasUnsavedLimitValues) { System.out.println ("DEBUG: assignment.getNumericId()=" + assignment.getNumericId());  Set limitValues = assignment.getLimitValues(); System.out.println ("DEBUG: limitValues.size()=" + limitValues.size()); Iterator limitValuesIterator = limitValues.iterator(); Session tempSession = this.sessionFactory.openSession(this.connection);  try { tx = tempSession.beginTransaction(); } catch (HibernateException he) { throw new CallbackException(he); }  while (limitValuesIterator.hasNext()) { LimitValue limitValue = (LimitValue)(limitValuesIterator.next());  try { System.out.println ("DEBUG: assignment.getNumericId().intValue()=" + assignment.getNumericId().intValue()); AssignmentLimitValue alv = new AssignmentLimitValue (assignment.getNumericId().intValue(), limitValue.getLimit().getId(), limitValue.getValue());  System.out.println ("DEBUG: alv.getAssignmentId()=" + alv.getAssignmentId()); tempSession.save(alv); } catch (Exception e) { throw new CallbackException(e); } }  try { tx.commit(); tempSession.close(); } catch (HibernateException he) { throw new CallbackException(he); }  assignment.hasUnsavedLimitValues = false; } } }
  public void postFlush(Iterator entities) throws CallbackException  {    // Do nothing, let the operation proceed.  }