Subversion Repositories SmartDukaan

Rev

Rev 37254 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
37211 amit 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import javax.persistence.*;
4
import java.time.LocalDate;
5
import java.time.LocalDateTime;
6
 
7
@Entity
8
@Table(name = "catalog.model_hot_deal")
9
public class ModelHotDeal {
10
 
11
    @Id
12
    @Column
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
14
    private int id;
15
 
16
    @Column(name = "brand_id")
17
    private int brandId;
18
 
19
    @Column(name = "catalog_item_id")
20
    private int catalogItemId;
21
 
22
    @Column(name = "start_date")
23
    private LocalDate startDate;
24
 
25
    @Column(name = "end_date")
26
    private LocalDate endDate;
27
 
37244 amit 28
    @Column(name = "warranty_months")
29
    private int warrantyMonths;
30
 
31
    @Column(name = "item_condition")
32
    @Enumerated(EnumType.STRING)
33
    private HotDealCondition itemCondition;
34
 
37268 amit 35
    /** true = device unused/sealed ("Fresh"); replaces the old inverted "activated" term. */
36
    @Column(name = "fresh")
37
    private boolean fresh;
37244 amit 38
 
39
    @Column(name = "finance_mapping")
40
    private boolean financeMapping;
41
 
42
    @Column(name = "affordability")
43
    private boolean affordability;
44
 
37211 amit 45
    @Column(name = "created_on")
46
    private LocalDateTime createdOn;
47
 
48
    @Column(name = "created_by")
49
    private String createdBy;
50
 
51
    @Column(name = "modified_on")
52
    private LocalDateTime modifiedOn;
53
 
54
    @Column(name = "modified_by")
55
    private String modifiedBy;
56
 
57
    @Transient
58
    private String catalogDescription;
59
 
60
    @Transient
61
    private String status;
62
 
37254 amit 63
    @Transient
64
    private String brandName;
65
 
37211 amit 66
    public int getId() {
67
        return id;
68
    }
69
 
70
    public void setId(int id) {
71
        this.id = id;
72
    }
73
 
74
    public int getBrandId() {
75
        return brandId;
76
    }
77
 
78
    public void setBrandId(int brandId) {
79
        this.brandId = brandId;
80
    }
81
 
82
    public int getCatalogItemId() {
83
        return catalogItemId;
84
    }
85
 
86
    public void setCatalogItemId(int catalogItemId) {
87
        this.catalogItemId = catalogItemId;
88
    }
89
 
90
    public LocalDate getStartDate() {
91
        return startDate;
92
    }
93
 
94
    public void setStartDate(LocalDate startDate) {
95
        this.startDate = startDate;
96
    }
97
 
98
    public LocalDate getEndDate() {
99
        return endDate;
100
    }
101
 
102
    public void setEndDate(LocalDate endDate) {
103
        this.endDate = endDate;
104
    }
105
 
106
    public LocalDateTime getCreatedOn() {
107
        return createdOn;
108
    }
109
 
110
    public void setCreatedOn(LocalDateTime createdOn) {
111
        this.createdOn = createdOn;
112
    }
113
 
114
    public String getCreatedBy() {
115
        return createdBy;
116
    }
117
 
118
    public void setCreatedBy(String createdBy) {
119
        this.createdBy = createdBy;
120
    }
121
 
122
    public LocalDateTime getModifiedOn() {
123
        return modifiedOn;
124
    }
125
 
126
    public void setModifiedOn(LocalDateTime modifiedOn) {
127
        this.modifiedOn = modifiedOn;
128
    }
129
 
130
    public String getModifiedBy() {
131
        return modifiedBy;
132
    }
133
 
134
    public void setModifiedBy(String modifiedBy) {
135
        this.modifiedBy = modifiedBy;
136
    }
137
 
138
    public String getCatalogDescription() {
139
        return catalogDescription;
140
    }
141
 
142
    public void setCatalogDescription(String catalogDescription) {
143
        this.catalogDescription = catalogDescription;
144
    }
145
 
146
    public String getStatus() {
147
        return status;
148
    }
149
 
150
    public void setStatus(String status) {
151
        this.status = status;
152
    }
37244 amit 153
 
37254 amit 154
    public String getBrandName() {
155
        return brandName;
156
    }
157
 
158
    public void setBrandName(String brandName) {
159
        this.brandName = brandName;
160
    }
161
 
37244 amit 162
    public int getWarrantyMonths() {
163
        return warrantyMonths;
164
    }
165
 
166
    public void setWarrantyMonths(int warrantyMonths) {
167
        this.warrantyMonths = warrantyMonths;
168
    }
169
 
170
    public HotDealCondition getItemCondition() {
171
        return itemCondition;
172
    }
173
 
174
    public void setItemCondition(HotDealCondition itemCondition) {
175
        this.itemCondition = itemCondition;
176
    }
177
 
37268 amit 178
    public boolean isFresh() {
179
        return fresh;
37244 amit 180
    }
181
 
37268 amit 182
    public void setFresh(boolean fresh) {
183
        this.fresh = fresh;
37244 amit 184
    }
185
 
186
    public boolean isFinanceMapping() {
187
        return financeMapping;
188
    }
189
 
190
    public void setFinanceMapping(boolean financeMapping) {
191
        this.financeMapping = financeMapping;
192
    }
193
 
194
    public boolean isAffordability() {
195
        return affordability;
196
    }
197
 
198
    public void setAffordability(boolean affordability) {
199
        this.affordability = affordability;
200
    }
37211 amit 201
}