I have an app which uses Hibernate 3.6.3 as the ORM. I created the hibernate.cfg.xml configuration file and added it to the build path. This works fine in my development environment. Now I need to create a jar for the production server with a dynamic DB connection credentials. I spent couple of hours on searching how to do it but all of the examples use:
Spring: which is not on the list of "blessed technologies",
Separate maven profiles: for which I need to now the production credentials (this won't happen).
Can I separate hibernate DB configurations or I need to pass it as parameter and configure hibernate programmatically?