Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36471 vikas 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.*;
4
import java.io.Serializable;
5
import java.time.LocalDateTime;
6
 
7
@Entity
8
@Table(name = "fofo.fofo_partner_document")
9
public class FofoPartnerDocument implements Serializable {
10
 
11
    @Id
12
    @GeneratedValue(strategy = GenerationType.IDENTITY)
13
    private int id;
14
 
15
    @Column(name = "fofo_id", nullable = false)
16
    private int fofoId;
17
 
18
    @Column(name = "title", nullable = false)
19
    private String title;
20
 
21
    @Column(name = "document_id", nullable = false)
22
    private int documentId;
23
 
24
    @Column(name = "created_date", updatable = false)
25
    private LocalDateTime createdDate = LocalDateTime.now();
26
 
27
    public int getId() {
28
        return id;
29
    }
30
 
31
    public void setId(int id) {
32
        this.id = id;
33
    }
34
 
35
    public int getFofoId() {
36
        return fofoId;
37
    }
38
 
39
    public void setFofoId(int fofoId) {
40
        this.fofoId = fofoId;
41
    }
42
 
43
    public String getTitle() {
44
        return title;
45
    }
46
 
47
    public void setTitle(String title) {
48
        this.title = title;
49
    }
50
 
51
    public int getDocumentId() {
52
        return documentId;
53
    }
54
 
55
    public void setDocumentId(int documentId) {
56
        this.documentId = documentId;
57
    }
58
 
59
    public LocalDateTime getCreatedDate() {
60
        return createdDate;
61
    }
62
 
63
    public void setCreatedDate(LocalDateTime createdDate) {
64
        this.createdDate = createdDate;
65
    }
66
 
67
    @Override
68
    public String toString() {
69
        return "FofoPartnerDocument{" +
70
                "id=" + id +
71
                ", fofoId=" + fofoId +
72
                ", title='" + title + '\'' +
73
                ", documentId=" + documentId +
74
                ", createdDate=" + createdDate +
75
                '}';
76
    }
77
}