1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.FetchType;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.JoinColumn;
12 import javax.persistence.ManyToOne;
13 import javax.persistence.Table;
14 import javax.persistence.Temporal;
15 import javax.persistence.TemporalType;
16 import org.hibernate.annotations.GenericGenerator;
17
18
19
20
21 @Entity
22 @Table(name = "TB_POPUP_PPP")
23 public class PopupPpp implements java.io.Serializable {
24
25 private Long codPpp;
26 private String indAtivaPpp;
27 private Date dataInclusaoPpp;
28 private Date dataFimExibicaoPpp;
29 private Date dataIniExibicaoPpp;
30 private String indDesativarPpp;
31 private Integer janelaLarguraPpp;
32 private Integer janelaAlturaPpp;
33 private String conteudoPpp;
34 private String nomePpp;
35 private PopupComportamentoPppc popupComportamentoPppc;
36
37 public PopupPpp() {
38 }
39
40 public PopupPpp(String indAtivaPpp, Date dataInclusaoPpp, Date dataFimExibicaoPpp, Date dataIniExibicaoPpp, String indDesativarPpp, Integer janelaLarguraPpp, Integer janelaAlturaPpp, String conteudoPpp, String nomePpp, PopupComportamentoPppc popupComportamentoPppc) {
41 this.indAtivaPpp = indAtivaPpp;
42 this.dataInclusaoPpp = dataInclusaoPpp;
43 this.dataFimExibicaoPpp = dataFimExibicaoPpp;
44 this.dataIniExibicaoPpp = dataIniExibicaoPpp;
45 this.indDesativarPpp = indDesativarPpp;
46 this.janelaLarguraPpp = janelaLarguraPpp;
47 this.janelaAlturaPpp = janelaAlturaPpp;
48 this.conteudoPpp = conteudoPpp;
49 this.nomePpp = nomePpp;
50 this.popupComportamentoPppc = popupComportamentoPppc;
51 }
52
53 @GenericGenerator(name = "generator", strategy = "increment")
54 @Id
55 @GeneratedValue(generator = "generator")
56 @Column(name = "COD_PPP", nullable = false)
57 public Long getCodPpp() {
58 return this.codPpp;
59 }
60
61 public void setCodPpp(Long codPpp) {
62 this.codPpp = codPpp;
63 }
64
65 @Column(name = "IND_ATIVA_PPP", length = 1)
66 public String getIndAtivaPpp() {
67 return this.indAtivaPpp;
68 }
69
70 public void setIndAtivaPpp(String indAtivaPpp) {
71 this.indAtivaPpp = indAtivaPpp;
72 }
73
74 @Temporal(TemporalType.TIMESTAMP)
75 @Column(name = "DATA_INCLUSAO_PPP", length = 7)
76 public Date getDataInclusaoPpp() {
77 return this.dataInclusaoPpp;
78 }
79
80 public void setDataInclusaoPpp(Date dataInclusaoPpp) {
81 this.dataInclusaoPpp = dataInclusaoPpp;
82 }
83
84 @Temporal(TemporalType.TIMESTAMP)
85 @Column(name = "DATA_FIM_EXIBICAO_PPP", length = 7)
86 public Date getDataFimExibicaoPpp() {
87 return this.dataFimExibicaoPpp;
88 }
89
90 public void setDataFimExibicaoPpp(Date dataFimExibicaoPpp) {
91 this.dataFimExibicaoPpp = dataFimExibicaoPpp;
92 }
93
94 @Temporal(TemporalType.TIMESTAMP)
95 @Column(name = "DATA_INI_EXIBICAO_PPP", length = 7)
96 public Date getDataIniExibicaoPpp() {
97 return this.dataIniExibicaoPpp;
98 }
99
100 public void setDataIniExibicaoPpp(Date dataIniExibicaoPpp) {
101 this.dataIniExibicaoPpp = dataIniExibicaoPpp;
102 }
103
104 @Column(name = "IND_DESATIVAR_PPP", length = 1)
105 public String getIndDesativarPpp() {
106 return this.indDesativarPpp;
107 }
108
109 public void setIndDesativarPpp(String indDesativarPpp) {
110 this.indDesativarPpp = indDesativarPpp;
111 }
112
113 @Column(name = "JANELA_LARGURA_PPP", length = 4)
114 public Integer getJanelaLarguraPpp() {
115 return this.janelaLarguraPpp;
116 }
117
118 public void setJanelaLarguraPpp(Integer janelaLarguraPpp) {
119 this.janelaLarguraPpp = janelaLarguraPpp;
120 }
121
122 @Column(name = "JANELA_ALTURA_PPP", length = 4)
123 public Integer getJanelaAlturaPpp() {
124 return this.janelaAlturaPpp;
125 }
126
127 public void setJanelaAlturaPpp(Integer janelaAlturaPpp) {
128 this.janelaAlturaPpp = janelaAlturaPpp;
129 }
130
131 @Column(name = "CONTEUDO_PPP", length = 2000)
132 public String getConteudoPpp() {
133 return this.conteudoPpp;
134 }
135
136 public void setConteudoPpp(String conteudoPpp) {
137 this.conteudoPpp = conteudoPpp;
138 }
139
140 @Column(name = "NOME_PPP", length = 30)
141 public String getNomePpp() {
142 return this.nomePpp;
143 }
144
145 public void setNomePpp(String nomePpp) {
146 this.nomePpp = nomePpp;
147 }
148
149 @ManyToOne(fetch = FetchType.LAZY)
150 @JoinColumn(name = "COD_PPPC")
151 public PopupComportamentoPppc getPopupComportamentoPppc() {
152 return this.popupComportamentoPppc;
153 }
154
155 public void setPopupComportamentoPppc(PopupComportamentoPppc popupComportamentoPppc) {
156 this.popupComportamentoPppc = popupComportamentoPppc;
157 }
158
159 }