SHARE
TWEET

Untitled

a guest Feb 17th, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.demo.model;
  2.  
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.Id;
  6.  
  7. @Entity
  8. public class Users {   
  9.     @Id
  10.     @GeneratedValue
  11.     int id;
  12.     String name;
  13.     String password;
  14.    
  15.     public Users() {
  16.         super();
  17.     }
  18.    
  19.     public Users(int id, String name, String password) {
  20.         super();
  21.         this.id = id;
  22.         this.name = name;
  23.         this.password = password;
  24.     }
  25.     public int getId() {
  26.         return id;
  27.     }
  28.     public void setId(int id) {
  29.         this.id = id;
  30.     }
  31.     public String getName() {
  32.         return name;
  33.     }
  34.     public void setName(String name) {
  35.         this.name = name;
  36.     }
  37.     public String getPassword() {
  38.         return password;
  39.     }
  40.     public void setPassword(String password) {
  41.         this.password = password;
  42.     }
  43.    
  44.     @Override
  45.     public String toString() {
  46.         return "User [id=" + id + ", name=" + name + ", password=" + password + "]";
  47.     }
  48. }
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