Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34242 tejus.loha 1
package com.spice.profitmandi.dao.entity.WebEntity;
2
 
3
import org.springframework.stereotype.Component;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
@Entity
8
@Table(name = "web.navbar")
9
public class NavBar {
10
    @Id
11
    @GeneratedValue(strategy = GenerationType.IDENTITY)
12
    @Column(name = "id")
13
    private int id;
14
    @Column(name = "title")
15
    private String title;
16
    @Column(name = "link")
17
    private String link;
18
    @Column(name = "sequence")
19
    private int sequence;
20
    @Column(name = "icon")
21
    private String icon;
22
    @Column(name = "active")
23
    private boolean active;
24
    @Column(name = "usedIn")
25
    private String usedIn;
26
    @Column(name = "createdOn" ,columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
27
    private LocalDateTime createdOn;
28
 
29
    public int getId() {
30
        return id;
31
    }
32
 
33
    public void setId(int id) {
34
        this.id = id;
35
    }
36
 
37
    public String getTitle() {
38
        return title;
39
    }
40
 
41
    public void setTitle(String title) {
42
        this.title = title;
43
    }
44
 
45
    public String getLink() {
46
        return link;
47
    }
48
 
49
    public void setLink(String link) {
50
        this.link = link;
51
    }
52
 
53
    public int getSequence() {
54
        return sequence;
55
    }
56
 
57
    public void setSequence(int sequence) {
58
        this.sequence = sequence;
59
    }
60
 
61
    public String getIcon() {
62
        return icon;
63
    }
64
 
65
    public void setIcon(String icon) {
66
        this.icon = icon;
67
    }
68
 
69
    public boolean isActive() {
70
        return active;
71
    }
72
 
73
    public void setActive(boolean active) {
74
        this.active = active;
75
    }
76
 
77
    public String getUseFor() {
78
        return usedIn;
79
    }
80
 
81
    public void setUseFor(String useFor) {
82
        this.usedIn = useFor;
83
    }
84
 
85
    public LocalDateTime getCreatedOn() {
86
        return createdOn;
87
    }
88
 
89
    public void setCreatedOn(LocalDateTime createdOn) {
90
        this.createdOn = createdOn;
91
    }
92
 
93
    @Override
94
    public String toString() {
95
        return "NavBar{" +
96
                "id=" + id +
97
                ", title='" + title + '\'' +
98
                ", link='" + link + '\'' +
99
                ", sequence=" + sequence +
100
                ", icon='" + icon + '\'' +
101
                ", active=" + active +
102
                ", usedIn='" + usedIn + '\'' +
103
                ", createdOn=" + createdOn +
104
                '}';
105
    }
106
}