title: Hibernate over JPA configurtation xml file
body: <p>I know it's possible to configure Hibernate in the 2 following ways:</p>
  
  <ol>
  <li><p>hibernate.cfg.xml </p></li>
  <li><p>persistence.xml - JPA - with specific hibenate configuration
  when you add the provider like this:</p>
  
  <p>org.hibernate.ejb.HibernatePersistence</p></li>
  </ol>
  
  <p>But , I don't understand when should I use which ?
  What should be the correct behavior?
  Thanks!</p>