BAEL-3464 - Ninja framework
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user