Ninja framework changes

This commit is contained in:
Anshul BANSAL
2019-12-08 14:40:42 +02:00
parent afdca95b43
commit 29657eb081
15 changed files with 209 additions and 164 deletions

View File

@@ -0,0 +1,22 @@
package models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class User {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
Long id;
public String firstName;
public String email;
public String toString() {
return firstName + " : " + email;
}
}