How can I ensure that all properties are loaded from hibernate.cfg.xml, then add additional properties programmatically? I saw the following code snippet but it looks like a
The code snippet you showed is what you need. Just use your existing configuration instead of creating a new one.
If it is not you who instantiates the configuration (but, for example, spring), you'd need to extend the class that creates it.