Steve Jobs Project/POS/Documentation:en
Technical Documentation
Do you know anything about Point Of Sale?
This is an essay about technical documentation of the source code of OpenBravo Point Of Sale.
Default Database Configuration Properties
![]() |
Let's start by describing the data model and show, into the code, I suppose you have imported the project source code successfully. |
Now take a look at the IDE console. We can see that the class responsible to application configurations is com.openbravo.pos.forms.AppConfig.
The following is an UML Class diagram for com.openbravo.pos.forms.AppConfig
Try to open the file into your IDE and focus on the part of code in which database parameters are configured. Into this class, the method in charge to initialise the default value of configuration parameters is loadDefault.
private void loadDefault() {
m_propsconfig = new Properties();
String dirname = System.getProperty("dirname.path");
dirname = dirname == null ? "./" : dirname;
m_propsconfig.setProperty("db.driverlib",
new File(new File(dirname), "lib/derby.jar").getAbsolutePath());
m_propsconfig.setProperty("db.driver", "org.apache.derby.jdbc.EmbeddedDriver");
m_propsconfig.setProperty("db.URL", "jdbc:derby:" +
new File(new File(System.getProperty("user.home")),
AppLocal.APP_ID + "-database").getAbsolutePath() + ";create=true");
m_propsconfig.setProperty("db.user", "");
m_prop




