Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
34881 aman 1
package com.spice.profitmandi.dao.entity.affiliate;
2
 
3
import javax.persistence.*;
4
import java.time.LocalDateTime;
5
 
6
@Entity
7
@Table(name = "web.affiliate_link")
8
public class AffiliateLinks {
9
 
10
    @Id
11
    @GeneratedValue(strategy = GenerationType.IDENTITY)
12
    @Column(name = "id")
13
    private int id;
14
 
15
    @Column(name = "catalog_id", nullable = false)
16
    private int catalogId;
17
 
18
    @Column(name = "customer_id", nullable = false)
19
    private int customerId;
20
 
34902 vikas 21
    @Column(name = "created_at")
34881 aman 22
    private LocalDateTime createdAt;
23
 
24
    @Column(name = "affiliate_code", length = 50)
25
    private String affiliateCode;
26
 
27
    @Column(name = "link_type", length = 20)
28
    private String linkType;
29
 
30
 
31
    public AffiliateLinks() {
32
    }
33
 
34
    public AffiliateLinks(int id, int catalogId, int customerId, LocalDateTime createdAt, String affiliateCode, String linkType) {
35
        this.id = id;
36
        this.catalogId = catalogId;
37
        this.customerId = customerId;
38
        this.createdAt = createdAt;
39
        this.affiliateCode = affiliateCode;
40
        this.linkType = linkType;
41
    }
42
 
43
    public int getId() {
44
        return id;
45
    }
46
 
47
    public void setId(int id) {
48
        this.id = id;
49
    }
50
 
51
    public int getCatalogId() {
52
        return catalogId;
53
    }
54
 
55
    public void setCatalogId(int catalogId) {
56
        this.catalogId = catalogId;
57
    }
58
 
59
    public int getCustomerId() {
60
        return customerId;
61
    }
62
 
63
    public void setCustomerId(int customerId) {
64
        this.customerId = customerId;
65
    }
66
 
67
    public LocalDateTime getCreatedAt() {
68
        return createdAt;
69
    }
70
 
71
    public void setCreatedAt(LocalDateTime createdAt) {
72
        this.createdAt = createdAt;
73
    }
74
 
75
    public String getAffiliateCode() {
76
        return affiliateCode;
77
    }
78
 
79
    public void setAffiliateCode(String affiliateCode) {
80
        this.affiliateCode = affiliateCode;
81
    }
82
 
83
    public String getLinkType() {
84
        return linkType;
85
    }
86
 
87
    public void setLinkType(String linkType) {
88
        this.linkType = linkType;
89
    }
90
 
91
    @Override
92
    public String toString() {
93
        return "AffiliateLinks{" +
94
                "id=" + id +
95
                ", catalogId=" + catalogId +
96
                ", customerId=" + customerId +
97
                ", createdAt=" + createdAt +
98
                ", affiliateCode='" + affiliateCode + '\'' +
99
                ", linkType='" + linkType + '\'' +
100
                '}';
101
    }
102
}