christian wrote:
But it will be in a different file then, to configure the datasource. Folks, if you can connect to a database you have to have the connection credentials. Any obscurity technique you are trying to deploy here doesn't work.
Yes but if you're using a datasource, the hibernate file doesn't need to be changed by the developers as the application is moved from development to QA to Production etc... Production database passwords are usually kept away from developers and by using a standard datasource name, the developer doesn't need to know this information outside of the development environment.