title: Configure JPA/Hibernate/PostgreSQL without XML
body: <p>I'm getting back into the Java world, and I'm trying to configure a new Spring web application with JPA, Hibernate and PostgreSQL.</p>
  
  <p>I have found a lot of older examples with various XML configuration files, and I'm wondering if there is a preferred new way to perform this configuration without relying on XML file authoring.</p>
  
  <p>Some of the things I need to configure are the hibernate sql dialect, driver, etc.</p>