Anophoo

Item

Dec 20th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. package com.ranger.anophoo.caloriecounter.DAO;
  2.  
  3. import org.greenrobot.greendao.annotation.Entity;
  4. import org.greenrobot.greendao.annotation.Id;
  5. import org.greenrobot.greendao.annotation.Property;
  6. import org.greenrobot.greendao.annotation.Generated;
  7.  
  8. /**
  9. * Created by anophoo on 12/12/17.
  10. */
  11.  
  12. @Entity
  13. public class Item {
  14.  
  15. @Id
  16. private String code;
  17.  
  18. @Property
  19. private String nameKa;
  20.  
  21. @Property
  22. private String nameEn;
  23.  
  24. @Property
  25. private String nameRu;
  26.  
  27. @Property
  28. private Integer weight;
  29.  
  30. @Property
  31. private String wUnit;
  32.  
  33. @Property
  34. private Integer calories;
  35.  
  36. @Property
  37. private String category;
  38.  
  39. @Generated(hash = 1160292103)
  40. public Item(String code, String nameKa, String nameEn, String nameRu,
  41. Integer weight, String wUnit, Integer calories, String category) {
  42. this.code = code;
  43. this.nameKa = nameKa;
  44. this.nameEn = nameEn;
  45. this.nameRu = nameRu;
  46. this.weight = weight;
  47. this.wUnit = wUnit;
  48. this.calories = calories;
  49. this.category = category;
  50. }
  51.  
  52. @Generated(hash = 1470900980)
  53. public Item() {
  54. }
  55.  
  56. public String getCode() {
  57. return this.code;
  58. }
  59.  
  60. public void setCode(String code) {
  61. this.code = code;
  62. }
  63.  
  64. public String getNameKa() {
  65. return this.nameKa;
  66. }
  67.  
  68. public void setNameKa(String nameKa) {
  69. this.nameKa = nameKa;
  70. }
  71.  
  72. public String getNameEn() {
  73. return this.nameEn;
  74. }
  75.  
  76. public void setNameEn(String nameEn) {
  77. this.nameEn = nameEn;
  78. }
  79.  
  80. public String getNameRu() {
  81. return this.nameRu;
  82. }
  83.  
  84. public void setNameRu(String nameRu) {
  85. this.nameRu = nameRu;
  86. }
  87.  
  88. public Integer getWeight() {
  89. return this.weight;
  90. }
  91.  
  92. public void setWeight(Integer weight) {
  93. this.weight = weight;
  94. }
  95.  
  96. public String getWUnit() {
  97. return this.wUnit;
  98. }
  99.  
  100. public void setWUnit(String wUnit) {
  101. this.wUnit = wUnit;
  102. }
  103.  
  104. public Integer getCalories() {
  105. return this.calories;
  106. }
  107.  
  108. public void setCalories(Integer calories) {
  109. this.calories = calories;
  110. }
  111.  
  112. public String getCategory() {
  113. return this.category;
  114. }
  115.  
  116. public void setCategory(String category) {
  117. this.category = category;
  118. }
  119.  
  120.  
  121. }
Advertisement
Add Comment
Please, Sign In to add comment