Subversion Repositories SmartDukaan

Rev

Rev 35095 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35095 Rev 35253
Line 26... Line 26...
26
    private String productCategory;
26
    private String productCategory;
27
    @Column(name = "fofo_store")
27
    @Column(name = "fofo_store")
28
    private String fofoStore;
28
    private String fofoStore;
29
    @Column(name = "max_cart_value")
29
    @Column(name = "max_cart_value")
30
    private Double maxCartValue;
30
    private Double maxCartValue;
-
 
31
    @Column(name = "is_default")
-
 
32
    private Boolean isDefault;
31
 
33
 
32
 
-
 
33
    public GiftEntity(Integer id, String name, String thumbnailUrl, Integer validity, Double minCartValue, Integer maxRedemptions, Integer offerId, String productCategory, String fofoStore, Double maxCartValue) {
34
    public GiftEntity(Integer id, String name, String thumbnailUrl, Integer validity, Double minCartValue, Integer maxRedemptions, Integer offerId, String productCategory, String fofoStore, Double maxCartValue, Boolean isDefault) {
34
        this.id = id;
35
        this.id = id;
35
        this.name = name;
36
        this.name = name;
36
        this.thumbnailUrl = thumbnailUrl;
37
        this.thumbnailUrl = thumbnailUrl;
37
        this.minCartValue = minCartValue;
38
        this.minCartValue = minCartValue;
38
        this.maxRedemptions = maxRedemptions;
39
        this.maxRedemptions = maxRedemptions;
39
        this.offerId = offerId;
40
        this.offerId = offerId;
40
        this.productCategory = productCategory;
41
        this.productCategory = productCategory;
41
        this.fofoStore = fofoStore;
42
        this.fofoStore = fofoStore;
42
        this.maxCartValue = maxCartValue;
43
        this.maxCartValue = maxCartValue;
-
 
44
        this.isDefault = isDefault;
43
 
45
 
44
    }
46
    }
45
 
47
 
46
    public GiftEntity() {
48
    public GiftEntity() {
47
 
49
 
Line 117... Line 119...
117
 
119
 
118
    public void setFofoStore(String fofoStore) {
120
    public void setFofoStore(String fofoStore) {
119
        this.fofoStore = fofoStore;
121
        this.fofoStore = fofoStore;
120
    }
122
    }
121
 
123
 
-
 
124
    public Boolean isDefault() {
-
 
125
        return isDefault;
-
 
126
    }
-
 
127
 
-
 
128
    public void setIsDefault(Boolean aDefault) {
-
 
129
        isDefault = aDefault;
-
 
130
    }
122
 
131
 
123
    @Override
132
    @Override
124
    public String toString() {
133
    public String toString() {
125
        return "Gift{" +
134
        return "Gift{" +
126
                "id=" + id +
135
                "id=" + id +
Line 130... Line 139...
130
                ", maxRedemptions=" + maxRedemptions +
139
                ", maxRedemptions=" + maxRedemptions +
131
                ", offerId=" + offerId +
140
                ", offerId=" + offerId +
132
                ", productCategory=" + productCategory +
141
                ", productCategory=" + productCategory +
133
                ", fofoStore=" + fofoStore +
142
                ", fofoStore=" + fofoStore +
134
                ", maxCartValue=" + maxCartValue +
143
                ", maxCartValue=" + maxCartValue +
-
 
144
                ", isDefault=" + isDefault +
135
                '}';
145
                '}';
136
    }
146
    }
137
}
147
}
138
148