Advertisement
Guest User

restaurant.java

a guest
Feb 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. package cityout2oParadoteo;
  2.  
  3. public class Restaurant {
  4.  
  5. private int id_res;
  6. private String name_res;
  7. private String address;
  8. private int phone_res;
  9. private String photo_url;
  10. private String map_res;
  11. private int id_cat;
  12. private int id_area;
  13.  
  14.  
  15.  
  16. /**
  17. * Constructor
  18. */
  19. public Restaurant(int id_res,String name_res,String address,int phone_res,String photo_url,String map_res,int id_cat,int id_area) {
  20. this.id_res = id_res;
  21. this.name_res = name_res;
  22. this.address = address;
  23. this.phone_res = phone_res;
  24. this.photo_url = photo_url;
  25. this.map_res = map_res;
  26. this.id_cat = id_cat;
  27. this.id_area = id_area;
  28.  
  29. }
  30.  
  31.  
  32. /*Getters and Setters*/
  33.  
  34. public int getId_res() {
  35. return id_res;
  36. }
  37.  
  38. public void setId_res(int id_res) {
  39. this.id_res = id_res;
  40. }
  41.  
  42. public String getName_res() {
  43. return name_res;
  44. }
  45.  
  46. public void setName_res(String name_res) {
  47. this.name_res = name_res;
  48. }
  49.  
  50. public String getAddress() {
  51. return address;
  52. }
  53.  
  54. public void setAddress(String address) {
  55. this.address = address;
  56. }
  57.  
  58. public int getPhone_res() {
  59. return phone_res;
  60. }
  61.  
  62. public void setPhone_res(int phone_res) {
  63. this.phone_res = phone_res;
  64. }
  65.  
  66. public String getPhoto_url() {
  67. return photo_url;
  68. }
  69.  
  70. public void setPhoto_url(String photo_url) {
  71. this.photo_url = photo_url;
  72. }
  73.  
  74. public String getMap_res() {
  75. return map_res;
  76. }
  77.  
  78. public void setMap_res(String map_res) {
  79. this.map_res = map_res;
  80. }
  81.  
  82. public int getId_cat() {
  83. return id_cat;
  84. }
  85.  
  86. public void setId_cat(int id_cat) {
  87. this.id_cat = id_cat;
  88. }
  89.  
  90. public int getId_area() {
  91. return id_area;
  92. }
  93.  
  94. public void setId_area(int id_area) {
  95. this.id_area = id_area;
  96. }
  97.  
  98.  
  99.  
  100. } //End of class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement