Please note: this project is inactive since early 2006
2.4.7 Relationship
Relationships can be declared in two different manners:
- you can declare RToOne and RToMany
relationships, joining an entity to an other one. Each of these objects
defines a directional relationship, from a source entity (this is the entity
where the relationship is defined) to a destination entity (pointed to by
the object's field
destination
, see below).
- Or, instead of declaring two directional relationships, each being the
inverse of the other, you can also declare a object Association
which gives you the opportunity to declare a relationship and its inverse in
a signle python statement.
In the next section, we'll see the defaults of BaseRelationship; while
it's not a pymodel component per se, it defines the defaults for all
other component defining relationships: RToOne
(cf.2.4.7),
RToMany (cf.2.4.7) and
Association (cf.2.4.8).
Subsections
Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by: