BAEL-3464 - Ninja framework

This commit is contained in:
Anshul BANSAL
2019-12-14 16:34:34 +02:00
parent 29657eb081
commit 7daa791c2b
14 changed files with 114 additions and 115 deletions

View File

@@ -4,6 +4,7 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Entity
public class User {
@@ -12,7 +13,9 @@ public class User {
@GeneratedValue(strategy=GenerationType.AUTO)
Long id;
@NotNull
public String firstName;
public String email;
public String toString() {