SHARE
TWEET

Untitled

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class UserBd implements Serializable {
  2.  
  3.     private static final long serialVersionUID = -3009157732242241606L;
  4.     @Id
  5.     @GeneratedValue(strategy = GenerationType.AUTO)
  6.     private long id;
  7.  
  8.     @Column(name = "name")
  9.     private String name;
  10.  
  11.     @Column(name = "password")
  12.     private String password;
  13.  
  14.     @Column(name = "email")
  15.     private String email;
  16.  
  17.     public UserBd(){
  18.  
  19.     }
  20.     public UserBd(String name, long id, String password, String email) {
  21.         this.email = email;
  22.         this.name = name;
  23.         this.id = id;
  24.         this.password = password;
  25.     }
  26.  
  27.     public String getEmail() {
  28.         return email;
  29.     }
  30.  
  31.     public void setEmail(String email) {
  32.         this.email = email;
  33.     }
  34.  
  35.     public String getPassword() {
  36.         return password;
  37.     }
  38.  
  39.     public void setPassword(String password) {
  40.         this.password = password;
  41.     }
  42.  
  43.     public UserBd(String name) {
  44.         this.name = name;
  45.     }
  46.  
  47.     public Long getId() {
  48.         return id;
  49.     }
  50.  
  51.     public void setId(Long id) {
  52.         this.id = id;
  53.     }
  54.  
  55.     public String getName() {
  56.         return name;
  57.     }
  58.  
  59.     public void setName(String name) {
  60.         this.name = name;
  61.     }
  62. }
  63.      
  64. {
  65.   "email": "string",
  66.   "id": 0,
  67.   "name": "string",
  68.   "password": "string"
  69. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top