Skip to content

Week 34

Malte Hviid-Magnussen edited this page Aug 27, 2019 · 3 revisions

Excercises for Week 34 - #1 Week - Flow 1 - 2019

Monday

Day where we had to do our setup

Domain - maltemagnussen.com - Currently just redirects to my github page.

Droplet

Questions

  1. How far you got with a solution
  2. Where the solution to each exercise can be found in your commit
  3. Which of the weekly learnings goals were covered by your solution

Tuesday - d. 20-08

Plain JPA and Facades

  1. I think I finished it all.
  2. myFirstJavaJpaApplication
  3. Oprette et basalt Java projekt med JPA og benytte annoteringer til at persistere entiteter i database. Redegøre for og demonstrere brug af begreber som EntityManager, EntityManagerFactory samt Persistence.xml. Demonstrere Insert og Select.

JPA flow-1

  1. I think I finished it all.
  2. point & extwo
  3. Same as above.

Wednesday - d. 21-08

Excercise 1-3

  1. I think I finished it all.
  2. rest1
  3. Oprette et Java projekt med REST endpoints. Implementere kode indeholdende de mest grundlæggende REST annotationer (GET kun). Håndtere parametre i REST endpoints i egne kodeeksempler. Redegøre for, og demonstrere det udleverede start project til brug for JPA/REST-projekter.

Excercise 4

  1. I think I finished it all.
  2. extwo
  3. Same as above.

Thursday - d. 22-08

Day-4-JPA_REST_JSON

  1. I think I finished it all. Deployment
  2. JPA REST JSON
    • Designe simple GET-endpoints med brug af en underliggende database tilgået via JPA
    • Kunne redegøre for nødvendigheden af i brug af JSON
    • Kunne redegøre for korrekt JSON syntaks
    • Kunne redegøre for Data Tranfer Objects (DTO's) og serialisering mellem Java objekter og JSON
    • Kunne konvertere frem og tilbage mellem Java objekter og JSON i egen kode

Friday - d. 23-08

Friday JPA REST DTO

  1. I think I finished it all. Deployment
  2. JPA REST DTO
  3. Same as above

Example of testing in extwo project. You make a test database, then point to that via a new persistance connection and then choose that when you make your EntityManagerFactory("putest");

Another example of testing - Made post-deadline though, but it follows the same principles as above. This is a better example of testing though imo.

Clone this wiki locally