title: hibernate.cfg.xml - Set parameters from a properties file
body: <p>I've this file <strong>hibernate.cfg.xml</strong> that I use to configure hibernate at sturtup.</p>
  
  <pre><code>&lt;property name="hibernate.connection.username"&gt;dbUser&lt;/property&gt;
  &lt;property name="hibernate.connection.password"&gt;1234&lt;/property&gt;
  </code></pre>
  
  <p>I've a properties file that it's called <strong>config.properties</strong> that hold all other configurations used into the application.</p>
  
  <p>How can I set <strong>"hibernate.connection.username"</strong> parameter from the properties file (config.properties) so I have only one file to edit?</p>