Advertisement
Guest User

hej

a guest
Nov 18th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public class CredModel {
  2. private String username;
  3. private String password;
  4. private String role;
  5.  
  6. public CredModel() {
  7. }
  8.  
  9. public CredModel(String username, String password, String role) {
  10. this.username = username;
  11. this.password = password;
  12. this.role = role;
  13. }
  14.  
  15. public String getUsername() {
  16. return username;
  17. }
  18.  
  19. public void setUsername(String username) {
  20. this.username = username;
  21. }
  22.  
  23. public String getPassword() {
  24. return password;
  25. }
  26.  
  27. public void setPassword(String password) {
  28. this.password = password;
  29. }
  30.  
  31. public String getRole() {
  32. return role;
  33. }
  34.  
  35. public void setRole(String role) {
  36. this.role = role;
  37. }
  38.  
  39. @Override
  40. public String toString() {
  41. return "CredModel{" +
  42. "username='" + username + '\'' +
  43. ", password='" + password + '\'' +
  44. ", role='" + role + '\'' +
  45. '}';
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement