1 package ecar.pojo;
2
3
4
5 import java.util.HashSet;
6 import java.util.Set;
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.FetchType;
10 import javax.persistence.GeneratedValue;
11 import javax.persistence.Id;
12 import javax.persistence.JoinColumn;
13 import javax.persistence.ManyToOne;
14 import javax.persistence.OneToMany;
15 import javax.persistence.Table;
16 import org.hibernate.annotations.GenericGenerator;
17
18
19
20
21 @Entity
22 @Table(name = "TB_PAGINA_PGN")
23 public class PaginaPgn implements java.io.Serializable {
24
25 private Long codPgn;
26 private Integer qtdSubAreaPgn;
27 private String descricaoMapaPgn;
28 private String tituloMapaPgn;
29 private String indMapaPgn;
30 private String indLoginPgn;
31 private String parametrosPgn;
32 private String indHomePgn;
33 private String urlPgn;
34 private String tituloPgn;
35 private String nomePgn;
36 private IdiomaIdm idiomaIdm;
37 private Set<PaginaPgn> paginaPgns = new HashSet<PaginaPgn>(0);
38 private PaginaPgn paginaPgn;
39 private PaginaAreaSitePa paginaAreaSitePa;
40
41 public PaginaPgn() {
42 }
43
44 public PaginaPgn(Integer qtdSubAreaPgn, String descricaoMapaPgn, String tituloMapaPgn, String indMapaPgn, String indLoginPgn, String parametrosPgn, String indHomePgn, String urlPgn, String tituloPgn, String nomePgn, IdiomaIdm idiomaIdm, Set<PaginaPgn> paginaPgns, PaginaPgn paginaPgn, PaginaAreaSitePa paginaAreaSitePa) {
45 this.qtdSubAreaPgn = qtdSubAreaPgn;
46 this.descricaoMapaPgn = descricaoMapaPgn;
47 this.tituloMapaPgn = tituloMapaPgn;
48 this.indMapaPgn = indMapaPgn;
49 this.indLoginPgn = indLoginPgn;
50 this.parametrosPgn = parametrosPgn;
51 this.indHomePgn = indHomePgn;
52 this.urlPgn = urlPgn;
53 this.tituloPgn = tituloPgn;
54 this.nomePgn = nomePgn;
55 this.idiomaIdm = idiomaIdm;
56 this.paginaPgns = paginaPgns;
57 this.paginaPgn = paginaPgn;
58 this.paginaAreaSitePa = paginaAreaSitePa;
59 }
60
61 @GenericGenerator(name = "generator", strategy = "increment")
62 @Id
63 @GeneratedValue(generator = "generator")
64 @Column(name = "COD_PGN", nullable = false)
65 public Long getCodPgn() {
66 return this.codPgn;
67 }
68
69 public void setCodPgn(Long codPgn) {
70 this.codPgn = codPgn;
71 }
72
73 @Column(name = "QTD_SUB_AREA_PGN", length = 4)
74 public Integer getQtdSubAreaPgn() {
75 return this.qtdSubAreaPgn;
76 }
77
78 public void setQtdSubAreaPgn(Integer qtdSubAreaPgn) {
79 this.qtdSubAreaPgn = qtdSubAreaPgn;
80 }
81
82 @Column(name = "DESCRICAO_MAPA_PGN", length = 2000)
83 public String getDescricaoMapaPgn() {
84 return this.descricaoMapaPgn;
85 }
86
87 public void setDescricaoMapaPgn(String descricaoMapaPgn) {
88 this.descricaoMapaPgn = descricaoMapaPgn;
89 }
90
91 @Column(name = "TITULO_MAPA_PGN", length = 20)
92 public String getTituloMapaPgn() {
93 return this.tituloMapaPgn;
94 }
95
96 public void setTituloMapaPgn(String tituloMapaPgn) {
97 this.tituloMapaPgn = tituloMapaPgn;
98 }
99
100 @Column(name = "IND_MAPA_PGN", length = 1)
101 public String getIndMapaPgn() {
102 return this.indMapaPgn;
103 }
104
105 public void setIndMapaPgn(String indMapaPgn) {
106 this.indMapaPgn = indMapaPgn;
107 }
108
109 @Column(name = "IND_LOGIN_PGN", length = 1)
110 public String getIndLoginPgn() {
111 return this.indLoginPgn;
112 }
113
114 public void setIndLoginPgn(String indLoginPgn) {
115 this.indLoginPgn = indLoginPgn;
116 }
117
118 @Column(name = "PARAMETROS_PGN", length = 20)
119 public String getParametrosPgn() {
120 return this.parametrosPgn;
121 }
122
123 public void setParametrosPgn(String parametrosPgn) {
124 this.parametrosPgn = parametrosPgn;
125 }
126
127 @Column(name = "IND_HOME_PGN", length = 1)
128 public String getIndHomePgn() {
129 return this.indHomePgn;
130 }
131
132 public void setIndHomePgn(String indHomePgn) {
133 this.indHomePgn = indHomePgn;
134 }
135
136 @Column(name = "URL_PGN", length = 100)
137 public String getUrlPgn() {
138 return this.urlPgn;
139 }
140
141 public void setUrlPgn(String urlPgn) {
142 this.urlPgn = urlPgn;
143 }
144
145 @Column(name = "TITULO_PGN", length = 2000)
146 public String getTituloPgn() {
147 return this.tituloPgn;
148 }
149
150 public void setTituloPgn(String tituloPgn) {
151 this.tituloPgn = tituloPgn;
152 }
153
154 @Column(name = "NOME_PGN", length = 30)
155 public String getNomePgn() {
156 return this.nomePgn;
157 }
158
159 public void setNomePgn(String nomePgn) {
160 this.nomePgn = nomePgn;
161 }
162
163 @ManyToOne(fetch = FetchType.LAZY)
164 @JoinColumn(name = "COD_IDM")
165 public IdiomaIdm getIdiomaIdm() {
166 return this.idiomaIdm;
167 }
168
169 public void setIdiomaIdm(IdiomaIdm idiomaIdm) {
170 this.idiomaIdm = idiomaIdm;
171 }
172
173 @OneToMany(fetch = FetchType.LAZY, mappedBy = "paginaPgn")
174 public Set<PaginaPgn> getPaginaPgns() {
175 return this.paginaPgns;
176 }
177
178 public void setPaginaPgns(Set<PaginaPgn> paginaPgns) {
179 this.paginaPgns = paginaPgns;
180 }
181
182 @ManyToOne(fetch = FetchType.LAZY)
183 @JoinColumn(name = "COD_PGN_ANTERIOR")
184 public PaginaPgn getPaginaPgn() {
185 return this.paginaPgn;
186 }
187
188 public void setPaginaPgn(PaginaPgn paginaPgn) {
189 this.paginaPgn = paginaPgn;
190 }
191
192 @ManyToOne(fetch = FetchType.LAZY)
193 @JoinColumn(name = "COD_PAS")
194 public PaginaAreaSitePa getPaginaAreaSitePa() {
195 return this.paginaAreaSitePa;
196 }
197
198 public void setPaginaAreaSitePa(PaginaAreaSitePa paginaAreaSitePa) {
199 this.paginaAreaSitePa = paginaAreaSitePa;
200 }
201
202 }