I haven't understood why hibernate's profile has two, a property, an XML. Hehe .. I learned that I didn't laugh at me. ...
Properties is a template configuration that can be configured with something troubles with XML, such as connecting pools, transactions, etc.
The XML configuration is the reconfiguration on the basis of the previous configuration, and even if it is mainly equipped with some mapping files.
In the source code, Configuration cfg = new configuration (); is loaded with the Properties configuration.
cfg.configure () is the loaded XML configuration
The XML configuration is to overlay Properties configuration.
This can be used two configurations, and there is no need to write hard addClass..