Differences
This shows you the differences between two versions of the page.
|
soloistconfiguration [2011/06/30 14:08] milorad.poptosic [File Repository] |
soloistconfiguration [2011/07/03 23:25] (current) milorad.poptosic [Model files] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== soloist-config.xml ====== | ====== soloist-config.xml ====== | ||
| - | soloist-config.xml represents the basic file for [[configuration|SOLoist project configuration]]. This file is used for configuring the most important aspects of the framework, such as: model files, path to file repository etc. | + | soloist-config.xml represents the basic file for [[configuration|SOLoist project configuration]]. This file is used for configuring the most important aspects of the framework, such as: referenced database, model files, path to file repository etc. |
| The easiest way to edit this file is from an IDE (such as Eclipse) with autocomplete. | The easiest way to edit this file is from an IDE (such as Eclipse) with autocomplete. | ||
| + | |||
| + | ===== Referenced Database ===== | ||
| + | RDBMS (Relational Database Management System) to be used in project is configured by way of an rdmbs tag. The tag contains an attribute dbPropFile which specifies the database configuration file with all the details about the database (in is named db.properties by default). For more details on how to write this file, see [[DatabaseConfiguration|Database Configuration]]. | ||
| + | |||
| + | The value of rdbms tag can be one of: mysql, oracle and sybase_asa, for MySQL, Oracle and Sybase SQL Anywhere, respectively. In the EmptyProject, which can be downloaded from SOLoist website, there are three db.properties files for the three databases that SOLoist currently supports (mysql_db.propreties, oracle_db.properties and asa_db.properites). | ||
| + | <file xml> | ||
| + | <rdbms dbPropFile="mysql_db.properties">mysql</rdbms> | ||
| + | </file> | ||
| ===== Model files ===== | ===== Model files ===== | ||
| As model-driven development framework, SOLoist needs to reference one or more files containing the domain model. These models are written in [[http://en.wikipedia.org/wiki/XML_Metadata_Interchange|XMI (XML Metadata Interchange)]] files, which are generated by the modeling tool (currently StarUML). | As model-driven development framework, SOLoist needs to reference one or more files containing the domain model. These models are written in [[http://en.wikipedia.org/wiki/XML_Metadata_Interchange|XMI (XML Metadata Interchange)]] files, which are generated by the modeling tool (currently StarUML). | ||
| - | These XMI files sholud be configured with model-files tag. | + | These XMI files should be configured with model-files tag. |
| <file xml> | <file xml> | ||
| <model-files> | <model-files> | ||
| + | <xmi-file>soloist.xmi</xmi-file> | ||
| <xmi-file>domainmodel.xmi</xmi-file> | <xmi-file>domainmodel.xmi</xmi-file> | ||
| </model-files> | </model-files> | ||
| Line 25: | Line 34: | ||
| <file-repository>/home/user/soloist/repository</file-repository> | <file-repository>/home/user/soloist/repository</file-repository> | ||
| </file> | </file> | ||
| - | The file repository can be any directory, but it should be empty intially. | ||
| ===== Internationalization and Localization ===== | ===== Internationalization and Localization ===== | ||
| SOLoist has a full support for [[internationalizationandlocalization|internationalization and localization]] which means supporting multiple languages. The default-locale tag sholud be used for setting the default locale for SOLoist applications. | SOLoist has a full support for [[internationalizationandlocalization|internationalization and localization]] which means supporting multiple languages. The default-locale tag sholud be used for setting the default locale for SOLoist applications. | ||