Product.java 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package models;
  2. import java.io.Serializable;
  3. public class Product implements Serializable {
  4. private int id;
  5. private String product_name;
  6. private int stock;
  7. private int version;
  8. public Product() {
  9. }
  10. public Product(int id, String product_name, int stock, int version) {
  11. this.id = id;
  12. this.product_name = product_name;
  13. this.stock = stock;
  14. this.version = version;
  15. }
  16. public int getId() {
  17. return id;
  18. }
  19. public void setId(int id) {
  20. this.id = id;
  21. }
  22. public String getProduct_name() {
  23. return product_name;
  24. }
  25. public void setProduct_name(String product_name) {
  26. this.product_name = product_name;
  27. }
  28. public int getStock() {
  29. return stock;
  30. }
  31. public void setStock(int stock) {
  32. this.stock = stock;
  33. }
  34. public int getVersion() {
  35. return version;
  36. }
  37. public void setVersion(int version) {
  38. this.version = version;
  39. }
  40. }