Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package tel_ran.model.entities;
  2.  
  3. import org.springframework.data.annotation.Id;
  4. import org.springframework.data.mongodb.core.mapping.Document;
  5.  
  6. @Document(collection = "accounts")
  7. public class Account {
  8. @Id
  9. private String userName;
  10. private String password;
  11. private String role;
  12.  
  13. public Account(String userName, String password, String role) {
  14. this.userName = userName;
  15. this.password = password;
  16. this.role = role;
  17. }
  18.  
  19. public String getUserName() {
  20. return userName;
  21. }
  22.  
  23. public void setUserName(String userName) {
  24. this.userName = userName;
  25. }
  26.  
  27. public String getPassword() {
  28. return password;
  29. }
  30.  
  31. public void setPassword(String password) {
  32. this.password = password;
  33. }
  34.  
  35. public String getRole() {
  36. return role;
  37. }
  38.  
  39. public void setRole(String role) {
  40. this.role = role;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement