Subversion Repositories SmartDukaan

Rev

Rev 35095 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34474 aman.kumar 1
package com.spice.profitmandi.dao.entity.scratch;
2
 
3
 
4
import javax.persistence.*;
5
 
6
@Entity
7
@Table(name = "web.gifts")
8
public class GiftEntity {
9
    @Id
10
    @GeneratedValue(strategy = GenerationType.IDENTITY)
11
    private Integer id;
12
    private String name;
13
    @Column(name = "thumbnail_url")
14
    private String thumbnailUrl;
15
    @Column(name = "min_cart_value")
16
    private Double minCartValue;
17
    @Column(name = "max_redemptions")
18
    private Integer maxRedemptions;
19
    @Column(name = "offer_id")
20
    private Integer offerId;
21
    @Column(name = "product_category")
22
    private String productCategory;
23
    @Column(name = "fofo_store")
24
    private String fofoStore;
25
    @Column(name = "max_cart_value")
26
    private Double maxCartValue;
27
 
28
 
29
    public GiftEntity(Integer id, String name, String thumbnailUrl, Integer validity, Double minCartValue, Integer maxRedemptions, Integer offerId, String productCategory, String fofoStore, Double maxCartValue) {
30
        this.id = id;
31
        this.name = name;
32
        this.thumbnailUrl = thumbnailUrl;
33
        this.minCartValue = minCartValue;
34
        this.maxRedemptions = maxRedemptions;
35
        this.offerId = offerId;
36
        this.productCategory = productCategory;
37
        this.fofoStore = fofoStore;
38
        this.maxCartValue = maxCartValue;
39
 
40
    }
41
 
42
    public GiftEntity() {
43
 
44
    }
45
 
46
    public Integer getId() {
47
        return id;
48
    }
49
 
50
    public void setId(Integer id) {
51
        this.id = id;
52
    }
53
 
54
    public String getName() {
55
        return name;
56
    }
57
 
58
    public void setName(String name) {
59
        this.name = name;
60
    }
61
 
62
    public String getThumbnailUrl() {
63
        return thumbnailUrl;
64
    }
65
 
66
    public void setThumbnailUrl(String thumbnailUrl) {
67
        this.thumbnailUrl = thumbnailUrl;
68
    }
69
 
70
    public Double getMinCartValue() {
71
        return minCartValue;
72
    }
73
 
74
    public void setMinCartValue(Double minCartValue) {
75
        this.minCartValue = minCartValue;
76
    }
77
 
78
    public Integer getMaxRedemptions() {
79
        return maxRedemptions;
80
    }
81
 
82
    public void setMaxRedemptions(Integer maxRedemptions) {
83
        this.maxRedemptions = maxRedemptions;
84
    }
85
 
86
    public Integer getOfferId() {
87
        return offerId;
88
    }
89
 
90
    public void setOfferId(Integer offerId) {
91
        this.offerId = offerId;
92
    }
93
 
94
    public Double getMaxCartValue() {
95
        return maxCartValue;
96
    }
97
 
98
    public void setMaxCartValue(Double maxCartValue) {
99
        this.maxCartValue = maxCartValue;
100
    }
101
 
102
    public String getProductCategory() {
103
        return productCategory;
104
    }
105
 
106
    public void setProductCategory(String productCategory) {
107
        this.productCategory = productCategory;
108
    }
109
 
110
    public String getFofoStore() {
111
        return fofoStore;
112
    }
113
 
114
    public void setFofoStore(String fofoStore) {
115
        this.fofoStore = fofoStore;
116
    }
117
 
118
 
119
    @Override
120
    public String toString() {
121
        return "Gift{" +
122
                "id=" + id +
123
                ", name='" + name + '\'' +
124
                ", thumbnailUrl='" + thumbnailUrl + '\'' +
125
                ", minCartValue=" + minCartValue +
126
                ", maxRedemptions=" + maxRedemptions +
127
                ", offerId=" + offerId +
128
                ", productCategory=" + productCategory +
129
                ", fofoStore=" + fofoStore +
130
                ", maxCartValue=" + maxCartValue +
131
                '}';
132
    }
133
}