View Javadoc

1   package ecar.pojo;
2   
3   // Generated Aug 13, 2009 2:24:15 PM by Hibernate Tools 3.2.0.CR1
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.OneToMany;
13  import javax.persistence.Table;
14  import org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * PaginaAreaSitePa generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_PAGINA_AREA_SITE_PAS")
21  public class PaginaAreaSitePa implements java.io.Serializable {
22  
23    private Long codPas;
24    private Integer seqApresentacaoPas;
25    private String corPas;
26    private String urlPas;
27    private String indCapaPas;
28    private String textoPas;
29    private String nomePas;
30    private String tituloPas;
31    private Set<OpcaoMenuOpcm> opcaoMenuOpcms = new HashSet<OpcaoMenuOpcm>(0);
32    private Set<PaginaPgn> paginaPgns = new HashSet<PaginaPgn>(0);
33  
34    public PaginaAreaSitePa() {
35    }
36  
37    public PaginaAreaSitePa(Integer seqApresentacaoPas, String corPas, String urlPas, String indCapaPas, String textoPas, String nomePas, String tituloPas, Set<OpcaoMenuOpcm> opcaoMenuOpcms, Set<PaginaPgn> paginaPgns) {
38      this.seqApresentacaoPas = seqApresentacaoPas;
39      this.corPas = corPas;
40      this.urlPas = urlPas;
41      this.indCapaPas = indCapaPas;
42      this.textoPas = textoPas;
43      this.nomePas = nomePas;
44      this.tituloPas = tituloPas;
45      this.opcaoMenuOpcms = opcaoMenuOpcms;
46      this.paginaPgns = paginaPgns;
47    }
48  
49    @GenericGenerator(name = "generator", strategy = "increment")
50    @Id
51    @GeneratedValue(generator = "generator")
52    @Column(name = "COD_PAS", nullable = false)
53    public Long getCodPas() {
54      return this.codPas;
55    }
56  
57    public void setCodPas(Long codPas) {
58      this.codPas = codPas;
59    }
60  
61    @Column(name = "SEQ_APRESENTACAO_PAS", length = 5)
62    public Integer getSeqApresentacaoPas() {
63      return this.seqApresentacaoPas;
64    }
65  
66    public void setSeqApresentacaoPas(Integer seqApresentacaoPas) {
67      this.seqApresentacaoPas = seqApresentacaoPas;
68    }
69  
70    @Column(name = "COR_PAS", length = 20)
71    public String getCorPas() {
72      return this.corPas;
73    }
74  
75    public void setCorPas(String corPas) {
76      this.corPas = corPas;
77    }
78  
79    @Column(name = "URL_PAS", length = 100)
80    public String getUrlPas() {
81      return this.urlPas;
82    }
83  
84    public void setUrlPas(String urlPas) {
85      this.urlPas = urlPas;
86    }
87  
88    @Column(name = "IND_CAPA_PAS", length = 1)
89    public String getIndCapaPas() {
90      return this.indCapaPas;
91    }
92  
93    public void setIndCapaPas(String indCapaPas) {
94      this.indCapaPas = indCapaPas;
95    }
96  
97    @Column(name = "TEXTO_PAS", length = 2000)
98    public String getTextoPas() {
99      return this.textoPas;
100   }
101 
102   public void setTextoPas(String textoPas) {
103     this.textoPas = textoPas;
104   }
105 
106   @Column(name = "NOME_PAS", length = 30)
107   public String getNomePas() {
108     return this.nomePas;
109   }
110 
111   public void setNomePas(String nomePas) {
112     this.nomePas = nomePas;
113   }
114 
115   @Column(name = "TITULO_PAS", length = 30)
116   public String getTituloPas() {
117     return this.tituloPas;
118   }
119 
120   public void setTituloPas(String tituloPas) {
121     this.tituloPas = tituloPas;
122   }
123 
124   @OneToMany(fetch = FetchType.LAZY, mappedBy = "paginaAreaSitePa")
125   public Set<OpcaoMenuOpcm> getOpcaoMenuOpcms() {
126     return this.opcaoMenuOpcms;
127   }
128 
129   public void setOpcaoMenuOpcms(Set<OpcaoMenuOpcm> opcaoMenuOpcms) {
130     this.opcaoMenuOpcms = opcaoMenuOpcms;
131   }
132 
133   @OneToMany(fetch = FetchType.LAZY, mappedBy = "paginaAreaSitePa")
134   public Set<PaginaPgn> getPaginaPgns() {
135     return this.paginaPgns;
136   }
137 
138   public void setPaginaPgns(Set<PaginaPgn> paginaPgns) {
139     this.paginaPgns = paginaPgns;
140   }
141 
142 }