Subversion Repositories SmartDukaan

Rev

Rev 37244 | Rev 37268 | Go to most recent revision | 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
 
35
    @Column(name = "activated")
36
    private boolean activated;
37
 
38
    @Column(name = "finance_mapping")
39
    private boolean financeMapping;
40
 
41
    @Column(name = "affordability")
42
    private boolean affordability;
43
 
37211 amit 44
    @Column(name = "created_on")
45
    private LocalDateTime createdOn;
46
 
47
    @Column(name = "created_by")
48
    private String createdBy;
49
 
50
    @Column(name = "modified_on")
51
    private LocalDateTime modifiedOn;
52
 
53
    @Column(name = "modified_by")
54
    private String modifiedBy;
55
 
56
    @Transient
57
    private String catalogDescription;
58
 
59
    @Transient
60
    private String status;
61
 
37254 amit 62
    @Transient
63
    private String brandName;
64
 
37211 amit 65
    public int getId() {
66
        return id;
67
    }
68
 
69
    public void setId(int id) {
70
        this.id = id;
71
    }
72
 
73
    public int getBrandId() {
74
        return brandId;
75
    }
76
 
77
    public void setBrandId(int brandId) {
78
        this.brandId = brandId;
79
    }
80
 
81
    public int getCatalogItemId() {
82
        return catalogItemId;
83
    }
84
 
85
    public void setCatalogItemId(int catalogItemId) {
86
        this.catalogItemId = catalogItemId;
87
    }
88
 
89
    public LocalDate getStartDate() {
90
        return startDate;
91
    }
92
 
93
    public void setStartDate(LocalDate startDate) {
94
        this.startDate = startDate;
95
    }
96
 
97
    public LocalDate getEndDate() {
98
        return endDate;
99
    }
100
 
101
    public void setEndDate(LocalDate endDate) {
102
        this.endDate = endDate;
103
    }
104
 
105
    public LocalDateTime getCreatedOn() {
106
        return createdOn;
107
    }
108
 
109
    public void setCreatedOn(LocalDateTime createdOn) {
110
        this.createdOn = createdOn;
111
    }
112
 
113
    public String getCreatedBy() {
114
        return createdBy;
115
    }
116
 
117
    public void setCreatedBy(String createdBy) {
118
        this.createdBy = createdBy;
119
    }
120
 
121
    public LocalDateTime getModifiedOn() {
122
        return modifiedOn;
123
    }
124
 
125
    public void setModifiedOn(LocalDateTime modifiedOn) {
126
        this.modifiedOn = modifiedOn;
127
    }
128
 
129
    public String getModifiedBy() {
130
        return modifiedBy;
131
    }
132
 
133
    public void setModifiedBy(String modifiedBy) {
134
        this.modifiedBy = modifiedBy;
135
    }
136
 
137
    public String getCatalogDescription() {
138
        return catalogDescription;
139
    }
140
 
141
    public void setCatalogDescription(String catalogDescription) {
142
        this.catalogDescription = catalogDescription;
143
    }
144
 
145
    public String getStatus() {
146
        return status;
147
    }
148
 
149
    public void setStatus(String status) {
150
        this.status = status;
151
    }
37244 amit 152
 
37254 amit 153
    public String getBrandName() {
154
        return brandName;
155
    }
156
 
157
    public void setBrandName(String brandName) {
158
        this.brandName = brandName;
159
    }
160
 
37244 amit 161
    public int getWarrantyMonths() {
162
        return warrantyMonths;
163
    }
164
 
165
    public void setWarrantyMonths(int warrantyMonths) {
166
        this.warrantyMonths = warrantyMonths;
167
    }
168
 
169
    public HotDealCondition getItemCondition() {
170
        return itemCondition;
171
    }
172
 
173
    public void setItemCondition(HotDealCondition itemCondition) {
174
        this.itemCondition = itemCondition;
175
    }
176
 
177
    public boolean isActivated() {
178
        return activated;
179
    }
180
 
181
    public void setActivated(boolean activated) {
182
        this.activated = activated;
183
    }
184
 
185
    public boolean isFinanceMapping() {
186
        return financeMapping;
187
    }
188
 
189
    public void setFinanceMapping(boolean financeMapping) {
190
        this.financeMapping = financeMapping;
191
    }
192
 
193
    public boolean isAffordability() {
194
        return affordability;
195
    }
196
 
197
    public void setAffordability(boolean affordability) {
198
        this.affordability = affordability;
199
    }
37211 amit 200
}