A (valid!) model contains all the necessary informations to generate a usable python package that can be used immediately to store and retrieve informations in a database.
In this section, we examine the different ways offered in the framework to
derive usable python code from a model; the model we'll use is
AuthorBooks
, that you'll find it in:
Modeling/tests/testPackages/AuthorBooks (either the pymodel in
pymodel_AuthorBooks.py
, or the xml-model in
model_AuthorBooks.xml
), and which is described in
section 2.1.1.
Quick reminder: in this model, we have two entities, Writer and Book:
+--------+ +------+ | Writer |<-author----------books->| Book | |--------| |------| | | | | | |<-pygmalion--+ | | +--------+ | +------+ | | +-----------------+