Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package com.example.demo;
  2.  
  3. public class City {
  4.  
  5. private Long id;
  6. private String name;
  7. private String country;
  8.  
  9. public Long getId() {
  10. return this.id;
  11. }
  12.  
  13. public void setId(Long id) {
  14. this.id = id;
  15. }
  16.  
  17. public String getName() {
  18. return this.name;
  19. }
  20.  
  21. public void setName(String name) {
  22. this.name = name;
  23. }
  24.  
  25. public String getCountry() {
  26. return this.country;
  27. }
  28.  
  29. public void setCountry(String country) {
  30. this.country = country;
  31. }
  32.  
  33. @Override
  34. public String toString() {
  35. return getId() + "," + getName() + "," + getCountry();
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement