Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36152 aman 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
 
8
@Entity
9
@Table(name = "fofo.fin_service_request")
10
public class FinServiceRequest {
11
 
12
    @Id
13
    @Column(name = "id")
14
    @GeneratedValue(strategy = GenerationType.IDENTITY)
15
    private int id;
16
 
17
    @Column(name = "template_id")
18
    private int templateId;
19
 
20
    @Column(name = "fofo_id")
21
    private int fofoId;
22
 
23
    @Column(name = "data_json")
24
    private String dataJson;
25
 
26
    @Column(name = "status")
27
    private String status;
28
 
29
    @Column(name = "created_by")
30
    private String createdBy;
31
 
32
    @Column(name = "created_at")
33
    @Convert(converter = LocalDateTimeAttributeConverter.class)
34
    private LocalDateTime createdAt;
35
 
36
    @Column(name = "mail_sent_at")
37
    @Convert(converter = LocalDateTimeAttributeConverter.class)
38
    private LocalDateTime mailSentAt;
39
 
40
    public int getId() {
41
        return id;
42
    }
43
 
44
    public void setId(int id) {
45
        this.id = id;
46
    }
47
 
48
    public int getTemplateId() {
49
        return templateId;
50
    }
51
 
52
    public void setTemplateId(int templateId) {
53
        this.templateId = templateId;
54
    }
55
 
56
    public int getFofoId() {
57
        return fofoId;
58
    }
59
 
60
    public void setFofoId(int fofoId) {
61
        this.fofoId = fofoId;
62
    }
63
 
64
    public String getDataJson() {
65
        return dataJson;
66
    }
67
 
68
    public void setDataJson(String dataJson) {
69
        this.dataJson = dataJson;
70
    }
71
 
72
    public String getStatus() {
73
        return status;
74
    }
75
 
76
    public void setStatus(String status) {
77
        this.status = status;
78
    }
79
 
80
    public String getCreatedBy() {
81
        return createdBy;
82
    }
83
 
84
    public void setCreatedBy(String createdBy) {
85
        this.createdBy = createdBy;
86
    }
87
 
88
    public LocalDateTime getCreatedAt() {
89
        return createdAt;
90
    }
91
 
92
    public void setCreatedAt(LocalDateTime createdAt) {
93
        this.createdAt = createdAt;
94
    }
95
 
96
    public LocalDateTime getMailSentAt() {
97
        return mailSentAt;
98
    }
99
 
100
    public void setMailSentAt(LocalDateTime mailSentAt) {
101
        this.mailSentAt = mailSentAt;
102
    }
103
 
104
    @Override
105
    public String toString() {
106
        return "FinServiceRequest{" +
107
                "id=" + id +
108
                ", templateId=" + templateId +
109
                ", fofoId=" + fofoId +
110
                ", status='" + status + '\'' +
111
                ", createdBy='" + createdBy + '\'' +
112
                ", createdAt=" + createdAt +
113
                '}';
114
    }
115
}