code: public int onNativeUpdate(String query, Map<Parameter, Object> parameterMap)
      {
          s = getStatelessSession();
  
          Query q = s.createSQLQuery(query);
          setParameters(parameterMap, q);
  
          // Transaction tx = s.getTransaction() == null ? s.beginTransaction():
          // s.getTransaction();
  
          // tx.begin();
          int i = q.executeUpdate();
  
          // tx.commit();
  
          return i;
      }
docs: On native update.
  
  @param query
  the query
  @param parameterMap
  the parameter map
  @return the int