password « Database « JPA Q&A





1. Passing Database Username/Password On the Fly    forum.hibernate.org

Dear All, For all this time (not long .. anyway), I pass the Database password and usename in the hibernate properties/configuration file. My Question is, how can I set the Database password and usename from a method or class constructor. By doing this I am able to make the program requesting a password and usename interactively rather than let the password ...

2. db password changing using Hibernate (is this possible?)    forum.hibernate.org

Hi, I use hibernate in stand-alone desktop application. Application users are also database users. So I create JDBC connection string after user input one's username and password. It is very comfortable and quite secure because I don't have to store and/or encrypt passwords in database (I use database's engine of encryption and storing passwords). There is one problem, namely: every contemporary ...

3. Hide db password    forum.hibernate.org

I've tried this one too, but does not work. Code: // Together cfg.configure(CONFIG_FILE_LOCATION) .setProperty("hibernate.connection.username", DB_USERNAME) .setProperty("hibernate.connection.password", DB_PASSWORD); // Separated cfg.configure(CONFIG_FILE_LOCATION); cfg.setProperty("hibernate.connection.username", DB_USERNAME); cfg.setProperty("hibernate.connection.password", DB_PASSWORD); // Changing order ...

4. Database username and password    forum.hibernate.org