Hibernate version: 3.2.6.ga
Hello, I'm a Hibernate newbie,
I would like to know if anyone have a suggestion to read the database settings from another file/local that is not the hibernate.cfg.xml.
This will help to migrate code from an database to another, so I don't need to change the hibernate.cfg.xml and then make deploy to update database settings.
That is possible? Maybe read from local environment variables or from an xml that is in the same directory than my project.jar.
Of course, after read, set the hibernate settings on the fly.
Thanks in advance.
HiberBoy
|