Last modified by Markus Ruggiero on 2025/10/24 16:07

Hide last authors
Ray Kiddy 27.1 1 === Properties Files ===
David Avendasora 25.1 2
Ray Kiddy 27.1 3 ==== User-Specific Properties Files ====
4
David Avendasora 25.1 5 You can have any number of **Properties.username** files in your project's Resources directory in-addition-to the default **Properties** file. These Properties.username files will automatically load based on which user is launching the application. This allows you to have custom logging, email, database, etc configuration settings for each developer.
6
Ray Kiddy 28.1 7 This capability can also be (ab)used in combinination with the Launch parameter **-Duser.name** to specify Production vs Staging/Development properties. For example: a launch parameter of **-Duser.name=deployment** will cause **Properties.deployment** to be read when the application in launched.
David Avendasora 25.1 8
9 This can be very useful for automatically changing database connection configurations based on whether or not an application is being run in Production or Development.
Ray Kiddy 27.1 10
11 ==== Development Only Properties File ====
12
13 You can set properties that will only be active if the project is run in Development mode by creating a **Properties.dev** file. It will be loaded for all users.
14
15 === Database Connection Properties ===
16
17 While the easiest place to set connection properties is in the EOModel, a better place to put them is in the Properties system, that way you can leverage the flexibility of launch-time loading of Properties so that you set connection info for each user, for development or for deployment.
18
19 ==== Model-Specific Connection Properties ====
20
Markus Ruggiero 30.1 21 {{code}}
Ray Kiddy 27.1 22 MyEOModel.URL =
23 MyEOModel.DBUser =
24 MyEOModel.DBPassword =
25 MyEOModel.DBDriver =
26 MyEOModel.DBPlugin =
27 MyEOModel.DBJDBCInfo =
Markus Ruggiero 30.1 28 {{/code}}
Ray Kiddy 27.1 29
30 ==== Global Connection Properties ====
31
32 These settings will allow you to set the connection properties for all the EOModels in your project.
33
Markus Ruggiero 30.1 34 {{code}}
Ray Kiddy 27.1 35 dbConnectURLGLOBAL =
36 dbConnectUserGLOBAL =
37 dbConnectPasswordGLOBAL =
38 dbConnectDriverGLOBAL =
39 dbEOPrototypesEntityGLOBAL =
Markus Ruggiero 30.1 40 {{/code}}