Can anyone post some example showing dinamically how to connect the SQLServer with a java app using Hibernate?
Today, I'm using the simple hibernate.cfg.xml, in it I put the connection credentials hardcoded. Now the app need to connect the database according to the user credentials,
In other words I can't put the credentials fixed in this file.
How can I achieve it?