23 lines
416 B
Java
Raw Normal View History

2019-12-08 14:40:42 +02:00
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;
}
}