diff --git a/backend/src/main/java/de/hft/geotime/entities/User.java b/backend/src/main/java/de/hft/geotime/entities/User.java index 196c555..0a3ee10 100644 --- a/backend/src/main/java/de/hft/geotime/entities/User.java +++ b/backend/src/main/java/de/hft/geotime/entities/User.java @@ -1,6 +1,8 @@ package de.hft.geotime.entities; +import lombok.AllArgsConstructor; import lombok.Data; +import lombok.NoArgsConstructor; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -8,6 +10,8 @@ import javax.persistence.GenerationType; import javax.persistence.Id; @Data +@NoArgsConstructor +@AllArgsConstructor @Entity public class User { @@ -20,11 +24,4 @@ public class User { //TODO: roleid(FK) //TODO: timetrackaccounts[List] - protected User() { - } - - public User(String firstname, String lastname) { - this.firstname = firstname; - this.lastname = lastname; - } }