Git Product home page Git Product logo

tpjpa2023's Introduction

JPA_tp

Florian Alphonzair - ILA

Ce repository contient une implémentation du projet de TAA avec JPA, contenant un domaine basique et des DAO. Cette petite API contient une documentation générée grâce à OpenAPI et Swagger.

La partie SpringBoot, KeyCloak et autre se situe sur cet autre repository : https://github.com/descente-ascii/spring_boot_tp

Architecture du domaine

  classDiagram
      Person <|-- Student
      Person <|-- Teacher
      Student "*" -- "1" Appointment 
      Teacher "*" -- "1" Appointment
      class Person{
          <<abstract>>
          -Long id
          -String name
      }
      class Student{
            -int studentNumber
            -List<Appointment> appointments
      }
      class Teacher{
            -String laboratory
            -List<Appointment> appointments
      }
    class Appointment{
        -Long id
        -Date date
        -Student student
        -Teacher teacher
    }
Loading

Installation et lancement

Le SDK utilisé est openjdk-19 (java version 19.0.2). Je n'ai pas créé de JAR pour ce projet, pour le lancer il suffit de lancer le main de src.main.java.RestServer. Le back est relié au serveur HSQL contenu à la racine du projet (mvnw pour Linux et run-hsqldb-server.bat pour Windows)

Le serveur écoute sur le port 8080. Le user est "sa" sans guillemets et il n'y a pas de mot de passe.

Requêtes HTTP (Insomnia)

Pour faciliter vos tests, vous pouvez importer dans Insomnia le fichier Insomnia_jpa_test_requests.json situé à la racine du projet. Il contient un ensemble de requêtes HTTP couvrant l'ensemble des fonctionnalités de cette API. Pour le moment, il réside encore quelques erreurs dans l'API : les endpoints de Appointment retournent tous 404 not found, lorsque l'on tente de delete une Person qui est présente dans Appointment une erreur surgit (foreign key no action)...

tpjpa2023's People

Contributors

barais avatar descente-ascii avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.