1
package cz.frantovo.nekurak.dto;
2
3
import java.util.Date;
4
5
/**
6
* Komentář k podniku
7
* @author fiki
8
*/
9
public class Komentar {
10
11
private int id;
12
private int podnik;
13
private String uzivatel;
14
private Date datum;
15
private String nadpis;
16
private String komentar;
17
private TYP typ;
18
19
public TYP getTyp() {
20
return typ;
21
}
22
23
public void setTyp(TYP typ) {
24
this.typ = typ;
25
26
27
public enum TYP {
28
PROSTY_TEXT,
29
XHTML,
30
TEXY
31
32
33
public int getId() {
34
return id;
35
36
37
public void setId(int id) {
38
this.id = id;
39
40
41
public int getPodnik() {
42
return podnik;
43
44
45
public void setPodnik(int podnik) {
46
this.podnik = podnik;
47
48
49
public String getUzivatel() {
50
return uzivatel;
51
52
53
public void setUzivatel(String uzivatel) {
54
this.uzivatel = uzivatel;
55
56
57
public Date getDatum() {
58
return datum;
59
60
61
public void setDatum(Date datum) {
62
this.datum = datum;
63
64
65
public String getNadpis() {
66
return nadpis;
67
68
69
public void setNadpis(String nadpis) {
70
this.nadpis = nadpis;
71
72
73
public String getKomentar() {
74
return komentar;
75
76
77
public void setKomentar(String komentar) {
78
this.komentar = komentar;
79
80