Subversion Repositories SmartDukaan

Rev

Rev 37211 | Rev 37254 | 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
 
62
    public int getId() {
63
        return id;
64
    }
65
 
66
    public void setId(int id) {
67
        this.id = id;
68
    }
69
 
70
    public int getBrandId() {
71
        return brandId;
72
    }
73
 
74
    public void setBrandId(int brandId) {
75
        this.brandId = brandId;
76
    }
77
 
78
    public int getCatalogItemId() {
79
        return catalogItemId;
80
    }
81
 
82
    public void setCatalogItemId(int catalogItemId) {
83
        this.catalogItemId = catalogItemId;
84
    }
85
 
86
    public LocalDate getStartDate() {
87
        return startDate;
88
    }
89
 
90
    public void setStartDate(LocalDate startDate) {
91
        this.startDate = startDate;
92
    }
93
 
94
    public LocalDate getEndDate() {
95
        return endDate;
96
    }
97
 
98
    public void setEndDate(LocalDate endDate) {
99
        this.endDate = endDate;
100
    }
101
 
102
    public LocalDateTime getCreatedOn() {
103
        return createdOn;
104
    }
105
 
106
    public void setCreatedOn(LocalDateTime createdOn) {
107
        this.createdOn = createdOn;
108
    }
109
 
110
    public String getCreatedBy() {
111
        return createdBy;
112
    }
113
 
114
    public void setCreatedBy(String createdBy) {
115
        this.createdBy = createdBy;
116
    }
117
 
118
    public LocalDateTime getModifiedOn() {
119
        return modifiedOn;
120
    }
121
 
122
    public void setModifiedOn(LocalDateTime modifiedOn) {
123
        this.modifiedOn = modifiedOn;
124
    }
125
 
126
    public String getModifiedBy() {
127
        return modifiedBy;
128
    }
129
 
130
    public void setModifiedBy(String modifiedBy) {
131
        this.modifiedBy = modifiedBy;
132
    }
133
 
134
    public String getCatalogDescription() {
135
        return catalogDescription;
136
    }
137
 
138
    public void setCatalogDescription(String catalogDescription) {
139
        this.catalogDescription = catalogDescription;
140
    }
141
 
142
    public String getStatus() {
143
        return status;
144
    }
145
 
146
    public void setStatus(String status) {
147
        this.status = status;
148
    }
37244 amit 149
 
150
    public int getWarrantyMonths() {
151
        return warrantyMonths;
152
    }
153
 
154
    public void setWarrantyMonths(int warrantyMonths) {
155
        this.warrantyMonths = warrantyMonths;
156
    }
157
 
158
    public HotDealCondition getItemCondition() {
159
        return itemCondition;
160
    }
161
 
162
    public void setItemCondition(HotDealCondition itemCondition) {
163
        this.itemCondition = itemCondition;
164
    }
165
 
166
    public boolean isActivated() {
167
        return activated;
168
    }
169
 
170
    public void setActivated(boolean activated) {
171
        this.activated = activated;
172
    }
173
 
174
    public boolean isFinanceMapping() {
175
        return financeMapping;
176
    }
177
 
178
    public void setFinanceMapping(boolean financeMapping) {
179
        this.financeMapping = financeMapping;
180
    }
181
 
182
    public boolean isAffordability() {
183
        return affordability;
184
    }
185
 
186
    public void setAffordability(boolean affordability) {
187
        this.affordability = affordability;
188
    }
37211 amit 189
}