This repository contains domain objects which are used for data transfer between
multiple services of the WettkampfDB domain. You can add domain-objects
to
your project by adding one of the following dependencies:
Add the following to your pom.xml
file:
<dependency>
<groupId>de.wettkampfdb</groupId>
<artifactId>domain-objects</artifactId>
<version>x.x.x</version>
</dependency>
Add the following to your build.gradle
file:
repositories {
maven {
url "https://maven.pkg.github.com/WettkampfDB/Domain-Objects"
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
implementation "de.wettkampfdb:domain-objects:x.x.x"
}
You can create a simple Competition
by invoking the .builder()
method:
Competition competition = Competition.builder()
.name("Test Marathon")
.startDate(LocalDate.now())
.endDate(LocalDate.now())
.url("https://www.wettkampfdb.de")
.build();