title: Get object using hibernate session without transaction
body: <p>What are differences between <code>getCurrentSession</code> and <code>openSession</code>?
  I mean using openSession I could make retrieve from the DB without beginning the transaction and committing it.</p>
  
  <pre><code>final SessionFactory sf = new Configuration().configure("hibernate.cfg.xml").addAnnotatedClass(Student.class)
                  .buildSessionFactory();
  Session session = sf.openSession();
  
  Student student = session.get(Student.class, 1);
  System.out.println(student);
  
  session.close();
  sf.close();
  </code></pre>
  
  <p>But in <code>getCurrentSession</code>, I have to do <code>session.beginTransaction()</code> and <code>session.getTransaction().commit()</code></p>