This project is meant as start code for CA-3 and exam projects, made by members of group CA2-2-Bornholm-B
Projects which are expected to use this start-code are projects that require all, or most of the following technologies:
- JPA and REST
- Testing, including database test
- Testing, including tests of REST-API's
- CI and CONTINUOUS DELIVERY
In order to use this code, you should have a local developer setup + a "matching" server on the internet, which you have admin access to.
This document explains how to use this code (build, test and deploy), locally with maven, and remotely with maven controlled by Github actions
Remember to edit the pom.xml
so the URL specified in <remote.server>
matches your server.
When you have got the project up and running, run the main
method in SetupTestUsers to get a starting point with some test users.
- From inside the Persistence window:
- Right-click a persistence unit, point to Generate Persistence Mapping and select By Database Schema.
- Select the
- data source
- package
- tick tables to include
- open tables to see columns and add the ones with mapped type: Collection and SomeEntity
- click OK."# test-rep"