title: Hibernate SessionFactory vs. JPA EntityManagerFactory
body: <p>I am new to Hibernate and I'm not sure whether to use a Hibernate <code>SessionFactory</code> or a JPA <code>EntityManagerFactory</code> to create a Hibernate <code>Session</code>.  </p>
  
  <p>What is the difference between these two?  What are the pros &amp; cons of using each of those?</p>