Files
tpjpa/README.md
2025-09-26 01:43:41 +02:00

1.1 KiB

Template de projet pour le TP JPA UniR

classDiagram
    Utilisateur "*" -- "*" Session
    Session "*" -- "1" Quizz
    Quizz "1" -- "1..*" Question
    Utilisateur "1" -- "*" Quizz
    Question "1" -- "1" Reponse 
    Reponse <|-- ReponseCourte
    Reponse <|-- Choix


    class Utilisateur {
        -id : int
        -name : String
        -session : List<Session>
        -email : String
        -password : String
        -quizzs : String
    }
    class Session{
        -codePin : int
        -quizzs : List<Quizz>
        -utilisateurs : List<Utilisateur>
        -theme : int
    }
    class Quizz{
        -session: Session
        -id : int
        -utilisateur: Utilisateur
    }
    class Reponse{
        -id : int
        -question: Question
        -reponses : ArrayList<String> 
    }
    class Choix{
        -choix : ArrayList<String>
    }
    class ReponseCourte{
        -value : String
        +getId()int

    }
    class Question{
        -id : int
        -reponse: Reponse
    }

Commande pour supprimer: rm -rd data/*

run : compile jetty:run