Subversion Repositories SmartDukaan

Rev

Details | 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_gift")
8
public class AffiliateGift {
9
    @Id
10
    @Column
11
    @GeneratedValue(strategy = GenerationType.IDENTITY)
12
    int id;
13
 
14
    @Column(name = "name")
15
    String name;
16
 
17
    @Column(name = "status")
18
    String status;
19
 
20
    @Column(name = "quantity")
21
    Integer qty;
22
 
23
    @Column(name = "created_at")
24
    LocalDateTime createdAt = LocalDateTime.now();
25
 
26
    @Column(name = "created_by")
27
    String createdBy;
28
 
29
    public AffiliateGift() {
30
    }
31
 
32
    public AffiliateGift(int id, String name, String status, Integer qty, LocalDateTime createdAt, String createdBy) {
33
        this.id = id;
34
        this.name = name;
35
        this.status = status;
36
        this.qty = qty;
37
        this.createdAt = createdAt;
38
        this.createdBy = createdBy;
39
    }
40
 
41
    public int getId() {
42
        return id;
43
    }
44
 
45
    public void setId(int id) {
46
        this.id = id;
47
    }
48
 
49
    public String getName() {
50
        return name;
51
    }
52
 
53
    public void setName(String name) {
54
        this.name = name;
55
    }
56
 
57
    public String getStatus() {
58
        return status;
59
    }
60
 
61
    public void setStatus(String status) {
62
        this.status = status;
63
    }
64
 
65
    public Integer getQty() {
66
        return qty;
67
    }
68
 
69
    public void setQty(Integer qty) {
70
        this.qty = qty;
71
    }
72
 
73
    public LocalDateTime getCreatedAt() {
74
        return createdAt;
75
    }
76
 
77
    public void setCreatedAt(LocalDateTime createdAt) {
78
        this.createdAt = createdAt;
79
    }
80
 
81
    public String getCreatedBy() {
82
        return createdBy;
83
    }
84
 
85
    public void setCreatedBy(String createdBy) {
86
        this.createdBy = createdBy;
87
    }
88
 
89
    @Override
90
    public String toString() {
91
        return "AffiliateGift{" +
92
                "id=" + id +
93
                ", name=" + name +
94
                ", status='" + status + '\'' +
95
                ", qty=" + qty +
96
                ", createdAt=" + createdAt +
97
                ", createdBy='" + createdBy + '\'' +
98
                '}';
99
    }
100
}
101