eadl:bloc3:dev_av:td2

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
eadl:bloc3:dev_av:td2 [2025/10/07 23:49] jcheroneadl:bloc3:dev_av:td2 [2025/10/08 00:18] (Version actuelle) – [4.4 Optimisation des identifiants avec Tsid] jcheron
Ligne 156: Ligne 156:
 === Configuration === === Configuration ===
  
-<sxh properties;gutter:false>+<sxh bash;gutter:false>
 # application.properties - Ajout pour Hypersistence # application.properties - Ajout pour Hypersistence
  
Ligne 263: Ligne 263:
   * Créer une nouvelle entité ''Review'' avec Tsid   * Créer une nouvelle entité ''Review'' avec Tsid
   * Comparer les performances d'insertion (benchmark)   * Comparer les performances d'insertion (benchmark)
 +
 +<html><div class="imageB"></html>
 +<uml>
 +@startuml Review Domain Model
 +
 +class Review {
 +  - id : Long
 +  - rating : Integer
 +  - title : String
 +  - comment : String
 +  - verified : Boolean
 +  - helpfulCount : Integer
 +  - createdAt : LocalDateTime
 +  - updatedAt : LocalDateTime
 +}
 +
 +class Product {
 +  - id : UUID
 +  - name : String
 +  - price : BigDecimal
 +  - stock : Integer
 +}
 +
 +class User {
 +  - id : UUID
 +  - username : String
 +  - email : String
 +}
 +
 +Product "1" -- "0..*" Review : product
 +User "1" -- "0..*" Review : author
 +
 +note right of Review
 +  Contraintes métier :
 +  • rating ∈ [1..5]
 +  • 1 review max par (user, product)
 +  • verified = true si achat confirmé
 +  • helpfulCount >= 0
 +  
 +  Tsid Generator pour l'id
 +  (performance + tri chronologique)
 +end note
 +
 +@enduml
 +
 +
 +
 +</uml>
 +<html></div></html>
  
 ==== 4.5 Monitoring des requêtes en temps réel ==== ==== 4.5 Monitoring des requêtes en temps réel ====
Ligne 317: Ligne 366:
 ===== Configuration complète ===== ===== Configuration complète =====
  
-<sxh properties;gutter:false>+<sxh bash;gutter:false>
 # application.properties - Configuration complète Séance 2 # application.properties - Configuration complète Séance 2
  
Ligne 347: Ligne 396:
 </sxh> </sxh>
  
-===== Livrables attendus (MAJ) =====+===== Livrables attendus =====
  
 <WRAP round bloc todo> <WRAP round bloc todo>
  • eadl/bloc3/dev_av/td2.1759873753.txt.gz
  • Dernière modification : il y a 14 heures
  • de jcheron