Database Model

A Database Model is created automatically by Telosys from an existing relational database.
The user just have to provide the connection configuration ("databases.dbcgf" file)
and the JDBC driver required to connect to the database (".jar" file).



Telosys connects to the database and discovers all the tables and their relationships thus it can create or update the model.
This kind of model is stored in XML format in a single file (the “.dbrep” file) and contains an entity for each table.
The model file can be edited with any editor or with the Telosys Eclipse plugin to adapt the model if necessary.

DSL Model

The DSL Model is used to create a model from scratch.
The user just ask Telosys to initialize a new DSL model then entities can be created or updated.
A DSL model is materialized by a ".model" file and a folder that contains all the entities
(e.g. for "abc" : "abc.model" file and "abc_model" folder).
Each entity is defined in a text file having the ".entity" extension (e.g. "Car" is defined in "Car.entity").



Entities files can be edited with any kind of editor but the editors extensions (VSCode, Atom)
or the Eclipse plugin are recommended for a better comfort.
An entity is described by using a very simple syntax allowing to define attributes and relationships.
For more information see the DSL syntax.

Models examples

If you want to use existing models instead of creating a model by yourself
models examples are available for download.
These models can be used to try code generation very quickly.