Please note: this project is inactive since early 2006
Subsections

 
2.4.7.1 BaseRelationship

A BaseRelationship describes how two entities relate to each other. It has the following attributes:

Prop.  Type  Default  Comment 
name string no default The name is the first mandatory argument when instanciating a BaseRelationship. Once set, it should not be changed
destination string no default The destination entity's name is the second mandatory argument when instanciating a BaseRelationship. Once set, it should not be changed
delete string 'nullify'  
isClassProperty int 1  
multiplicity sequence [0,1]  
joinSemantic int 0 see below
src string '' source attr.'s name
dst string '' destination attr.'s names
displayLabel string ''  
doc string ''  
inverse string '' a valid relationship's name in the destination entity -see 2.4.7, ''Inverse relationships'' for a full discussion.

You'll never need to use a BaseRelationship; in fact, it's not even legal in a PyModel. Instead, you'll declare RToOne (2.4.7) and RToMany (2.4.7) objects; or even better, you'll use Association (2.4.8) objects to create both a relationship and its inverse in a single declaration.

We presented it here because all three element RToOne, RToMany and Association use the BaseRelationship's defaults for their own defaults (and override some of them).

 
2.4.7.1.1 Join semantic

 

The possible values for the attribute joinSemantic, and their respective meaning are:

Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by:SourceForge.net Logo