Advertisement
Guest User

Untitled

a guest
Nov 29th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. package com.hrms;
  2.  
  3. public class User {
  4. private int id;
  5. private String name;
  6. private String username;
  7. private String password;
  8. private String status;
  9. public User(int id, String name, String username, String password, String status) {
  10. super();
  11. this.id = id;
  12. this.name = name;
  13. this.username = username;
  14. this.password = password;
  15. this.status = status;
  16. }
  17. public User()
  18. {
  19. }
  20. /**
  21. * @return the id
  22. */
  23. public int getId() {
  24. return id;
  25. }
  26. /**
  27. * @param id the id to set
  28. */
  29. public void setId(int id) {
  30. this.id = id;
  31. }
  32. /**
  33. * @return the name
  34. */
  35. public String getName() {
  36. return name;
  37. }
  38. /**
  39. * @param name the name to set
  40. */
  41. public void setName(String name) {
  42. this.name = name;
  43. }
  44. /**
  45. * @return the username
  46. */
  47. public String getUsername() {
  48. return username;
  49. }
  50. /**
  51. * @param username the username to set
  52. */
  53. public void setUsername(String username) {
  54. this.username = username;
  55. }
  56. /**
  57. * @return the password
  58. */
  59. public String getPassword() {
  60. return password;
  61. }
  62. /**
  63. * @param password the password to set
  64. */
  65. public void setPassword(String password) {
  66. this.password = password;
  67. }
  68. /**
  69. * @return the status
  70. */
  71. public String getStatus() {
  72. return status;
  73. }
  74. /**
  75. * @param status the status to set
  76. */
  77. public void setStatus(String status) {
  78. this.status = status;
  79. }
  80. public String toString()
  81. {
  82. return id+","+name+","+username+","+password+","+status;
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement