Formatting

This commit is contained in:
Marcel Schwarz 2020-04-30 20:42:22 +02:00
parent 56a3ddad27
commit 23a72fa238
3 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package de.hft.geotime.record; package de.hft.geotime.record;
public enum RecordType { public enum RecordType {
BREAK, BREAK,
PAID PAID
} }

View File

@ -16,6 +16,7 @@ import java.util.Date;
@AllArgsConstructor @AllArgsConstructor
@Entity @Entity
public class TimeRecord { public class TimeRecord {
@Id @Id
private long id; private long id;
@OneToOne @OneToOne
@ -24,4 +25,5 @@ public class TimeRecord {
private Date enddate; private Date enddate;
private Duration time; private Duration time;
private RecordType type; private RecordType type;
} }

View File

@ -12,6 +12,7 @@ import javax.persistence.*;
@AllArgsConstructor @AllArgsConstructor
@Entity @Entity
public class TimetrackAccount { public class TimetrackAccount {
@Id @Id
@GeneratedValue(strategy = GenerationType.AUTO) @GeneratedValue(strategy = GenerationType.AUTO)
private long id; private long id;
@ -20,4 +21,5 @@ public class TimetrackAccount {
private double revenue; private double revenue;
private String name; private String name;
private String description; private String description;
} }