In this section we give a general idea on the Models and their elements. The details for the different parameters will be reviewed in detail in the next section.
E.-R. Modelling defines:
Say you have two entities, Book and Writer (this
refers to the model definied in section 2.1.1);
these two entities are in relation to each other: the Book
defines a relationship named toAuthor, pointing to
Writer, and Writer has in turn a relationship
toBooks pointing to Book. Each of these relationships
is the inverse of the other. The former, toAuthor, designates
e.g. exactly 1 author, while the second one designates 0 or n
books, with n being a positive integer.
In this case 1 is said to be both the lower and the upper
bounds of the toAuthor relationship's multiplicity, while for
toBooks 0 is the lower bound and * (meaning: any
positive number of books) is the upper bound. The former is said to be
a to-one relationship (1 is the upper bound), the latter, a to-many
relationship (the multiplicity's upper-bound is -strictly- greater
than 1).
Additionally, we define Models and Model Sets.
A model groups entities together. It holds specific informations about the underlying database itself, such as the connection dictionary, and it gathers Entities which are to be made persistent within the same database.
Model Sets are, as the name suggest it, sets of models. The Framework itself only deals with one ModelSet, accessible by calling defaultModelSet() on module Modeling.ModelSet.
Comments are welcome: Sebastien Bigaret / Modeling Home Page