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.
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.