Skip to content

Instantly share code, notes, and snippets.

@lusabo
Last active May 1, 2018 19:22
Show Gist options
  • Save lusabo/a800401c4f48f3ffee83c7d8e942d22d to your computer and use it in GitHub Desktop.
Save lusabo/a800401c4f48f3ffee83c7d8e942d22d to your computer and use it in GitHub Desktop.
User
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