Please note: this project is inactive since early 2006

 
2.3.2.1 Primary keys

Primary keys are attributes/columns that an RDBMS uses to uniquely identify every row of a table. It is required that a non-abstract Entity2.2 defines one of its attributes to be a primary key. Within an entity you define attributes, relationships, and primary keys as well as the attributes that are ''used for locking'' (this we will not explained for now, as it it addresses a feature, optimistic locking, that is not yet supported). However, for primary keys, you should remember that we only support simple primary keys, i.e. primary keys with only one attribute; hence, please make sure that you have one, and only one, primary-key per entity.

Entities know their primary keys. Their are defined differently in PyModels and in xml-model, see the respective sections and 2.5.3.



Footnotes

... Entity2.2
abstract entities are not supported yet
Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by:SourceForge.net Logo