Author.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.lovecoding.xml.pojo;
  2. import java.util.List;
  3. public class Author {
  4. private int id;
  5. private String username;
  6. private String password;
  7. private String email;
  8. private List<Book> books;
  9. public List<Book> getBooks() {
  10. return books;
  11. }
  12. public void setBooks(List<Book> books) {
  13. this.books = books;
  14. }
  15. public int getId() {
  16. return id;
  17. }
  18. public void setId(int id) {
  19. this.id = id;
  20. }
  21. public String getUsername() {
  22. return username;
  23. }
  24. public void setUsername(String username) {
  25. this.username = username;
  26. }
  27. public String getPassword() {
  28. return password;
  29. }
  30. public void setPassword(String password) {
  31. this.password = password;
  32. }
  33. public String getEmail() {
  34. return email;
  35. }
  36. public void setEmail(String email) {
  37. this.email = email;
  38. }
  39. @Override
  40. public String toString() {
  41. return "Author{" +
  42. "id=" + id +
  43. ", username='" + username + '\'' +
  44. ", password='" + password + '\'' +
  45. ", email='" + email + '\'' +
  46. ", books=" + books +
  47. '}';
  48. }
  49. }