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 javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.FetchType;
8   import javax.persistence.GeneratedValue;
9   import javax.persistence.Id;
10  import javax.persistence.JoinColumn;
11  import javax.persistence.ManyToOne;
12  import javax.persistence.Table;
13  import org.hibernate.annotations.GenericGenerator;
14  
15  /**
16   * ConfigRelatorioCfgrel generated by hbm2java
17   */
18  @Entity
19  @Table(name = "tb_config_relatorio_cfgrel")
20  public class ConfigRelatorioCfgrel implements java.io.Serializable {
21  
22    private Integer codCfgrel;
23    private String tituloCfgrel;
24    private String notaRodapeCfgrel;
25    private ModeloRelatorioMrel modeloRelatorioMrel;
26  
27    public ConfigRelatorioCfgrel() {
28    }
29  
30    public ConfigRelatorioCfgrel(String tituloCfgrel, String notaRodapeCfgrel, ModeloRelatorioMrel modeloRelatorioMrel) {
31      this.tituloCfgrel = tituloCfgrel;
32      this.notaRodapeCfgrel = notaRodapeCfgrel;
33      this.modeloRelatorioMrel = modeloRelatorioMrel;
34    }
35  
36    @GenericGenerator(name = "generator", strategy = "increment")
37    @Id
38    @GeneratedValue(generator = "generator")
39    @Column(name = "cod_cfgrel", nullable = false, length = 4)
40    public Integer getCodCfgrel() {
41      return this.codCfgrel;
42    }
43  
44    public void setCodCfgrel(Integer codCfgrel) {
45      this.codCfgrel = codCfgrel;
46    }
47  
48    @Column(name = "titulo_cfgrel", length = 200)
49    public String getTituloCfgrel() {
50      return this.tituloCfgrel;
51    }
52  
53    public void setTituloCfgrel(String tituloCfgrel) {
54      this.tituloCfgrel = tituloCfgrel;
55    }
56  
57    @Column(name = "nota_rodape_cfgrel", length = 2000)
58    public String getNotaRodapeCfgrel() {
59      return this.notaRodapeCfgrel;
60    }
61  
62    public void setNotaRodapeCfgrel(String notaRodapeCfgrel) {
63      this.notaRodapeCfgrel = notaRodapeCfgrel;
64    }
65  
66    @ManyToOne(fetch = FetchType.LAZY)
67    @JoinColumn(name = "cod_mrel")
68    public ModeloRelatorioMrel getModeloRelatorioMrel() {
69      return this.modeloRelatorioMrel;
70    }
71  
72    public void setModeloRelatorioMrel(ModeloRelatorioMrel modeloRelatorioMrel) {
73      this.modeloRelatorioMrel = modeloRelatorioMrel;
74    }
75  
76  }