Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. package com.example.obelo.app.clases;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class Product implements Serializable {
  6.  
  7. private int id;
  8. private int price;
  9. private int fk_category;
  10. private String name;
  11. private String description;
  12.  
  13. public Product() {
  14. }
  15.  
  16. public Product(int id, String name, int price, String description, String imgURL, int fk_category) {
  17. this.id = id;
  18. this.price = price;
  19. this.fk_category = fk_category;
  20. this.name = name;
  21. this.description = description;
  22. this.imgURL = imgURL;
  23. }
  24.  
  25. public String getImgURL() {
  26. return imgURL;
  27. }
  28.  
  29. public void setImgURL(String imgURL) {
  30. this.imgURL = imgURL;
  31. }
  32.  
  33. private String imgURL;
  34.  
  35. public int getId() {
  36. return id;
  37. }
  38.  
  39. public void setId(int id) {
  40. this.id = id;
  41. }
  42.  
  43. public int getPrice() {
  44. return price;
  45. }
  46.  
  47. public void setPrice(int price) {
  48. this.price = price;
  49. }
  50.  
  51. public int getFk_category() {
  52. return fk_category;
  53. }
  54.  
  55. public void setFk_category(int fk_category) {
  56. this.fk_category = fk_category;
  57. }
  58.  
  59. public String getName() {
  60. return name;
  61. }
  62.  
  63. public void setName(String name) {
  64. this.name = name;
  65. }
  66.  
  67. public String getDescription() {
  68. return description;
  69. }
  70.  
  71. public void setDescription(String description) {
  72. this.description = description;
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement