Last active
May 1, 2018 19:22
-
-
Save lusabo/a800401c4f48f3ffee83c7d8e942d22d to your computer and use it in GitHub Desktop.
User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eco.security; | |
import java.io.Serializable; | |
import javax.persistence.Entity; | |
import javax.persistence.EnumType; | |
import javax.persistence.Enumerated; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
@Entity | |
@Table(name = "user") | |
public class User implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; | |
@Enumerated(EnumType.STRING) | |
private Profile profile; | |
private String name; | |
private String email; | |
private String username; | |
private String password; | |
private String phone; | |
// Getters and Setter | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment