title: Hibernate program not terminating
body: <p>I wrote a simple Hibernate program, and it seems to be working fine, the data gets loaded into the DB, table gets created. However the program doesn't terminate after commit() is called.</p>
  
  <p>Here is the piece of code that i am using:</p>
  
  <pre><code>    SessionFactory sessionFactory= new Configuration().configure().buildSessionFactory();
      Session session = sessionFactory.openSession();
      session.beginTransaction();
      session.save(model);
      session.getTransaction().commit();
  </code></pre>
  
  <p>I am using MySQL as DB for this, running the program in eclipse.</p>
  
  <p>Please suggest as to what might be wrong here.</p>
  
  <p>Thanks,
  Vipin</p>