Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37898 ranu 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import javax.persistence.*;
4
import java.io.Serializable;
5
import java.math.BigDecimal;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "catalog.emi_product")
10
public class EmiProduct implements Serializable {
11
 
12
    private static final long serialVersionUID = 1L;
13
 
14
    @Id
15
    @Column(name = "id", columnDefinition = "int unsigned")
16
    @GeneratedValue(strategy = GenerationType.IDENTITY)
17
    private int id;
18
 
19
    @Column(name = "catalog_id", columnDefinition = "int unsigned")
20
    private Integer catalogId;
21
 
22
    @Column(name = "pine_sku", length = 128, nullable = false)
23
    private String pineSku;
24
 
25
    @Column(name = "brand", length = 64, nullable = false)
26
    private String brand;
27
 
28
    @Column(name = "product_name", length = 255, nullable = false)
29
    private String productName;
30
 
31
    @Column(name = "price_display", length = 32)
32
    private String priceDisplay;
33
 
34
    @Column(name = "price_rupees", precision = 10, scale = 2)
35
    private BigDecimal priceRupees;
36
 
37
    @Column(name = "scraped_at", nullable = false)
38
    private LocalDateTime scrapedAt;
39
 
40
    @Column(name = "created_at")
41
    private LocalDateTime createdAt;
42
 
43
    @Column(name = "updated_at")
44
    private LocalDateTime updatedAt;
45
 
46
    public int getId() {
47
        return id;
48
    }
49
 
50
    public void setId(int id) {
51
        this.id = id;
52
    }
53
 
54
    public Integer getCatalogId() {
55
        return catalogId;
56
    }
57
 
58
    public void setCatalogId(Integer catalogId) {
59
        this.catalogId = catalogId;
60
    }
61
 
62
    public String getPineSku() {
63
        return pineSku;
64
    }
65
 
66
    public void setPineSku(String pineSku) {
67
        this.pineSku = pineSku;
68
    }
69
 
70
    public String getBrand() {
71
        return brand;
72
    }
73
 
74
    public void setBrand(String brand) {
75
        this.brand = brand;
76
    }
77
 
78
    public String getProductName() {
79
        return productName;
80
    }
81
 
82
    public void setProductName(String productName) {
83
        this.productName = productName;
84
    }
85
 
86
    public String getPriceDisplay() {
87
        return priceDisplay;
88
    }
89
 
90
    public void setPriceDisplay(String priceDisplay) {
91
        this.priceDisplay = priceDisplay;
92
    }
93
 
94
    public BigDecimal getPriceRupees() {
95
        return priceRupees;
96
    }
97
 
98
    public void setPriceRupees(BigDecimal priceRupees) {
99
        this.priceRupees = priceRupees;
100
    }
101
 
102
    public LocalDateTime getScrapedAt() {
103
        return scrapedAt;
104
    }
105
 
106
    public void setScrapedAt(LocalDateTime scrapedAt) {
107
        this.scrapedAt = scrapedAt;
108
    }
109
 
110
    public LocalDateTime getCreatedAt() {
111
        return createdAt;
112
    }
113
 
114
    public void setCreatedAt(LocalDateTime createdAt) {
115
        this.createdAt = createdAt;
116
    }
117
 
118
    public LocalDateTime getUpdatedAt() {
119
        return updatedAt;
120
    }
121
 
122
    public void setUpdatedAt(LocalDateTime updatedAt) {
123
        this.updatedAt = updatedAt;
124
    }
125
}