Generate User Constructor with lombok

This commit is contained in:
Marcel Schwarz 2020-04-28 11:28:44 +02:00
parent e944d34316
commit 05cb94abf0

View File

@ -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;
}
}