Romann Szczepaniak BDD2 TP2

Table of Contents

1. Exercice 1

a)

@startuml
left to right direction

scale 1.3

object Maison
@enduml

b) Nous allons mettre un attribut numéro à maison, car c'est une propriété atomique

@startuml
left to right direction
scale 1.3

object Maison {
numéro
}
@enduml

c)

@startuml
left to right direction
scale 1.3

object Maison {
numéro
}

object Piece

Maison "1..*" -- "*" Piece : contient >
@enduml

d)

@startuml
left to right direction
scale 1.3

object Maison {
numéro
}

object Type

object Piece {
superficie
}

Maison "1..*" -- "*" Piece : contient >

Piece "*" -- "1" Type : catégorise >
@enduml

e)

@startuml
left to right direction
scale 1.3

object Maison {
numéro
}

object Type

object Piece {
superficie
}

object Utilities

object Decor

Maison "1..*" -- "*" Piece : contient >

Piece "*" -- "1" Type : catégorise >

Piece "*" -- "*" Decor : Décore <

Piece "*" -- "1..*" Utilities : Compose <
@enduml

f) ?

2. Exercice 2

left to right direction
scale 1.3

object Producteur {
        nom
}

object Ville


object PointDeVente

object Produit {
        nom
        description
        prix
}

object Categorie

object Client

object Commande

object Quantite

Producteur "*" -- "1" Ville : Est basé >
Producteur "1..*" -- "*" PointDeVente : Dispose >
Producteur "1" -- "1..*" Produit : Propose >
Categorie "1..*" -- "*" Produit : Categorise >
Client "1" -- "*" Commande : Commande >
Commande "1..*" -- "1..*" Produit : Est associé >
Commande "*" -- "1" PointDeVente : Est livré >
(Commande, Produit) .. Quantite

f) Non, ici c'est un cas de dépendance conditionelle, et le MCD n'est pas fait pour représenter cela

g)

left to right direction
scale 1.3

object Producteur {
    nom
}

object Ville

object PointDeVente

object Produit {
    nom
    description
    prix
}

object Categorie

object Client

object Commande {
    date
}

object Quantite {
    quantite_souhaitee
    quantite_livree
}

object BonDeLivraison {
    date_livraison
    montant_total
}

Producteur "*" -- "1" Ville : "Est basé >"
Producteur "1..*" -- "*" PointDeVente : "Dispose >"
Producteur "1" -- "1..*" Produit : "Propose >"
Categorie "1..*" -- "*" Produit : "Categorise >"
Client "1" -- "*" Commande : "Commande >"
Commande "1..*" -- "1..*" Produit : "Est associé >"
Commande "*" -- "1" PointDeVente : "Est livré >"
(Commande, Produit) .. Quantite : Détaille >

Commande "1" -- "1" BonDeLivraison : "Génère >"
BonDeLivraison "1" -- "1..*" (Produit, Quantite) : Rappelle >

Author: romann

Created: 2026-09-03 jeu. 00:56

Validate