Conception logique d'une base de données relationnelle objet
Conception logique d'une base de données relationnelle objet
Conception logique d'une base de données relationnelle objet
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
G.13 Exercices 25<br />
Exercices corrigés<br />
• Exercice G.1. Le principal problème <strong>de</strong> représentation est celui <strong>de</strong> la hiérarchie<br />
is-a sans contrainte <strong>de</strong> disjonction. On adopte dans un premier temps la transformation<br />
<strong>de</strong> disjonction asymétrique, ce qui donne le schéma G.21.<br />
DOSSIER<br />
NumDossier<br />
Matricule<br />
Contenu<br />
id: NumDossier<br />
id': Matricule<br />
ref<br />
EMPLOYE_SEUL<br />
Service<br />
Fonction<br />
SALARIE<br />
Matricule<br />
Nom<br />
Prénom[1-5] array<br />
id: Matricule<br />
D<br />
OUVRIER<br />
NumAffilié<br />
Co<strong>de</strong>Caisse<br />
Régime<br />
id': Co<strong>de</strong>Caisse<br />
NumAffilié<br />
ref: Co<strong>de</strong>Caisse<br />
CAISSE<br />
Co<strong>de</strong>Caisse<br />
Nom<br />
id: Co<strong>de</strong>Caisse<br />
OUVRIER_EMPLOYE<br />
Service<br />
Fonction<br />
Figure G.21 - Le mon<strong>de</strong> du travail, version <strong>relationnelle</strong> <strong>objet</strong> (1)<br />
Par une disjonction symétrique, on obtient le schéma G.22, dans lequel il conviendrait<br />
d’ajouter une contrainte d’i<strong>de</strong>ntifiant secondaire global pour les tables<br />
OUVRIER_EMPLOYE et EMPLOYE_SEUL.<br />
DOSSIER<br />
NumDossier<br />
Matricule<br />
Contenu<br />
id: NumDossier<br />
id': Matricule<br />
ref<br />
SALARIE<br />
Matricule<br />
Nom<br />
Prénom[1-5] array<br />
id: Matricule<br />
D<br />
CAISSE<br />
Co<strong>de</strong>Caisse<br />
Nom<br />
id: Co<strong>de</strong>Caisse<br />
© J-L Hainaut - 2009<br />
EMPLOYE_SEUL<br />
Service<br />
Fonction<br />
OUVRIER_EMPLOYE<br />
Co<strong>de</strong>Caisse<br />
NumAffilié<br />
Service<br />
Fonction<br />
Régime<br />
id': Co<strong>de</strong>Caisse<br />
NumAffilié<br />
ref: Co<strong>de</strong>Caisse<br />
OUVRIER_SEUL<br />
Co<strong>de</strong>Caisse<br />
NumAffilié<br />
Régime<br />
id': Co<strong>de</strong>Caisse<br />
NumAffilié<br />
ref: Co<strong>de</strong>Caisse<br />
Figure G.22 - Le mon<strong>de</strong> du travail, version <strong>relationnelle</strong> <strong>objet</strong> (2)