From 23a72fa238b00ce364cdd7d537d413c791eb31f4 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Thu, 30 Apr 2020 20:42:22 +0200 Subject: [PATCH] Formatting --- backend/src/main/java/de/hft/geotime/record/RecordType.java | 2 ++ backend/src/main/java/de/hft/geotime/record/TimeRecord.java | 2 ++ .../java/de/hft/geotime/timetrackaccount/TimetrackAccount.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/backend/src/main/java/de/hft/geotime/record/RecordType.java b/backend/src/main/java/de/hft/geotime/record/RecordType.java index 1744c48..0adab48 100644 --- a/backend/src/main/java/de/hft/geotime/record/RecordType.java +++ b/backend/src/main/java/de/hft/geotime/record/RecordType.java @@ -1,6 +1,8 @@ package de.hft.geotime.record; public enum RecordType { + BREAK, PAID + } diff --git a/backend/src/main/java/de/hft/geotime/record/TimeRecord.java b/backend/src/main/java/de/hft/geotime/record/TimeRecord.java index 3d9e888..3280d37 100644 --- a/backend/src/main/java/de/hft/geotime/record/TimeRecord.java +++ b/backend/src/main/java/de/hft/geotime/record/TimeRecord.java @@ -16,6 +16,7 @@ import java.util.Date; @AllArgsConstructor @Entity public class TimeRecord { + @Id private long id; @OneToOne @@ -24,4 +25,5 @@ public class TimeRecord { private Date enddate; private Duration time; private RecordType type; + } diff --git a/backend/src/main/java/de/hft/geotime/timetrackaccount/TimetrackAccount.java b/backend/src/main/java/de/hft/geotime/timetrackaccount/TimetrackAccount.java index 0d38a12..f44e6c8 100644 --- a/backend/src/main/java/de/hft/geotime/timetrackaccount/TimetrackAccount.java +++ b/backend/src/main/java/de/hft/geotime/timetrackaccount/TimetrackAccount.java @@ -12,6 +12,7 @@ import javax.persistence.*; @AllArgsConstructor @Entity public class TimetrackAccount { + @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @@ -20,4 +21,5 @@ public class TimetrackAccount { private double revenue; private String name; private String description; + }