Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ranger.anophoo.caloriecounter.DAO;
- import org.greenrobot.greendao.annotation.Entity;
- import org.greenrobot.greendao.annotation.Id;
- import org.greenrobot.greendao.annotation.Property;
- import org.greenrobot.greendao.annotation.Generated;
- /**
- * Created by anophoo on 12/12/17.
- */
- @Entity
- public class Item {
- @Id
- private String code;
- @Property
- private String nameKa;
- @Property
- private String nameEn;
- @Property
- private String nameRu;
- @Property
- private Integer weight;
- @Property
- private String wUnit;
- @Property
- private Integer calories;
- @Property
- private String category;
- @Generated(hash = 1160292103)
- public Item(String code, String nameKa, String nameEn, String nameRu,
- Integer weight, String wUnit, Integer calories, String category) {
- this.code = code;
- this.nameKa = nameKa;
- this.nameEn = nameEn;
- this.nameRu = nameRu;
- this.weight = weight;
- this.wUnit = wUnit;
- this.calories = calories;
- this.category = category;
- }
- @Generated(hash = 1470900980)
- public Item() {
- }
- public String getCode() {
- return this.code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public String getNameKa() {
- return this.nameKa;
- }
- public void setNameKa(String nameKa) {
- this.nameKa = nameKa;
- }
- public String getNameEn() {
- return this.nameEn;
- }
- public void setNameEn(String nameEn) {
- this.nameEn = nameEn;
- }
- public String getNameRu() {
- return this.nameRu;
- }
- public void setNameRu(String nameRu) {
- this.nameRu = nameRu;
- }
- public Integer getWeight() {
- return this.weight;
- }
- public void setWeight(Integer weight) {
- this.weight = weight;
- }
- public String getWUnit() {
- return this.wUnit;
- }
- public void setWUnit(String wUnit) {
- this.wUnit = wUnit;
- }
- public Integer getCalories() {
- return this.calories;
- }
- public void setCalories(Integer calories) {
- this.calories = calories;
- }
- public String getCategory() {
- return this.category;
- }
- public void setCategory(String category) {
- this.category = category;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment