title: Where does session factory's method define database to be used?
body: <p>I'm creating Session factory object like following:</p>
  
  <pre><code>SessionFactory factory = new Configuration().configure().buildSessionFactory();
  </code></pre>
  
  <p>Which class mentions the database which I've mentioned in *.hbm.xml file ?</p>