2 Replies Latest reply on Oct 2, 2008 11:47 AM by Benito Juarez

    batch update or insert

    Benito Juarez Newbie

      Hello,


      I'd like to so some large batch updates against the hibernate managed database. Something like this:



      PreparedStatement stmt = connection.prepareStatement(query);
      stmt.setString(1, id);
      stmt.setString(2, type);
      stmt.addBatch();
      .
      stmt.executeBatch();





      How can i access the connection used in the hibernate session?


      Grz,
      BJ


      PS: this forum doesn't really work on IE7, i just had to write my post in firefox due to a JS-Error and the search-function behaves strange...