Advertisement
Guest User

Untitled

a guest
Feb 7th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package com.beans;
  7. /**
  8. *
  9. * @author Joach
  10. */
  11. public class User {
  12.  
  13. private String username;
  14. private String password;
  15. private Role role;
  16.  
  17. public String getUsername() {
  18. return username;
  19. }
  20.  
  21. public void setUsername(String username) {
  22. this.username = username;
  23. }
  24.  
  25. public String getPassword() {
  26. return password;
  27. }
  28.  
  29. public void setPassword(String password) {
  30. this.password = password;
  31. }
  32.  
  33. public Role getRole() {
  34. return role;
  35. }
  36.  
  37. public void setRole(Role role) {
  38. this.role = role;
  39. }
  40. }
  41.  
  42. /*
  43. * To change this license header, choose License Headers in Project Properties.
  44. * To change this template file, choose Tools | Templates
  45. * and open the template in the editor.
  46. */
  47. package com.beans;
  48.  
  49. /**
  50. *
  51. * @author Joach
  52. */
  53. public enum Role {
  54. User,
  55. Admin,
  56. Guest
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement