1. Externalize connection URL username and password from hibernate.config.xml coderanch.comWhat about using XML External Entity references? I am not highly expert on this, found the information on the "Java Persistence with Hibernate" book, Chapter 3, Pg. 136-137. Step 1: Define a globals.dtd file where you define external XML entities like the following: Step 2: Include the global dtd file containing entities into you DOCTYPE ... |
2. Need help: Datasource is requiring username/password in conf forum.hibernate.orgI'm trying to connect to my database via a datasource. Currently, it's only working if I provide a user ID and password in the Hibernate config file - but I don't want to do that. Part of the point of using a datasource is to avoid putting user IDs and passwords into config files.... SO, I'm sure I have something configured ... |
3. Configuring username / password for Connection forum.hibernate.orgHi, I have an Rich Client Applictation (RCP) which uses Hibernate. I want individual users to access the underlying DB with their corresponding accounts. I create a new Hibernate Configuration, letting it populate all properties from the standard hibernate conf xml file, but before creating the SessionFactory, i set the username/password properties programmatically, and then create the Factory. This works well ... |
4. Configuring username / password for Connection forum.hibernate.orgHi, I have an Rich Client Applictation (RCP) which uses Hibernate. I want individual users to access the underlying DB with their corresponding accounts. I create a new Hibernate Configuration, letting it populate all properties from the standard hibernate conf xml file, but before creating the SessionFactory, i set the username/password properties programmatically, and then create the Factory. This works well ... |