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   
8   import javax.persistence.Column;
9   import javax.persistence.Entity;
10  import javax.persistence.FetchType;
11  import javax.persistence.GeneratedValue;
12  import javax.persistence.Id;
13  import javax.persistence.JoinColumn;
14  import javax.persistence.ManyToOne;
15  import javax.persistence.OneToMany;
16  import javax.persistence.Table;
17  
18  import org.hibernate.annotations.GenericGenerator;
19  
20  /**
21   * ConfigMailCfgm generated by hbm2java
22   */
23  @Entity
24  @Table(name = "tb_config_mail_cfgm")
25  public class ConfigMailCfgm implements java.io.Serializable {
26  
27    private static final long serialVersionUID = -8684499704124138899L;
28  
29    private Integer codCfgm;
30    private String descricaoCfgm;
31    private String ativoCfgm;
32    private String indEnvioObrigatorio;
33    private ConfiguracaoCfg configuracaoCfg;
34    private Set<TfuncacompConfigmailTfacfgm> tfuncacompConfigmailTfacfgms = new HashSet<TfuncacompConfigmailTfacfgm>(0);
35    private TextosSiteTxt textosSiteSms;
36    private TextosSiteTxt textosSiteMail;
37  
38    public ConfigMailCfgm() {
39    }
40  
41    public ConfigMailCfgm(String descricaoCfgm, String ativoCfgm, String indEnvioObrigatorio, ConfiguracaoCfg configuracaoCfg, Set<TfuncacompConfigmailTfacfgm> tfuncacompConfigmailTfacfgms, TextosSiteTxt textosSiteSms, TextosSiteTxt textosSiteMail) {
42      this.descricaoCfgm = descricaoCfgm;
43      this.ativoCfgm = ativoCfgm;
44      this.indEnvioObrigatorio = indEnvioObrigatorio;
45      this.configuracaoCfg = configuracaoCfg;
46      this.tfuncacompConfigmailTfacfgms = tfuncacompConfigmailTfacfgms;
47      this.textosSiteSms = textosSiteSms;
48      this.textosSiteMail = textosSiteMail;
49    }
50  
51    @GenericGenerator(name = "generator", strategy = "increment")
52    @Id
53    @GeneratedValue(generator = "generator")
54    @Column(name = "cod_cfgm", nullable = false, length = 4)
55    public Integer getCodCfgm() {
56      return this.codCfgm;
57    }
58  
59    public void setCodCfgm(Integer codCfgm) {
60      this.codCfgm = codCfgm;
61    } 
62  
63    @Column(name = "descricao_cfgm", length = 200)
64    public String getDescricaoCfgm() {
65      return this.descricaoCfgm;
66    }
67  
68    public void setDescricaoCfgm(String descricaoCfgm) {
69      this.descricaoCfgm = descricaoCfgm;
70    }
71  
72    @Column(name = "ativo_cfgm", length = 1)
73    public String getAtivoCfgm() {
74      return this.ativoCfgm;
75    }
76  
77    public void setAtivoCfgm(String ativoCfgm) {
78      this.ativoCfgm = ativoCfgm;
79    }
80  
81    @Column(name = "IND_ENVIO_OBRIGATORIO", length = 1)
82    public String getIndEnvioObrigatorio() {
83      return this.indEnvioObrigatorio;
84    }
85  
86    public void setIndEnvioObrigatorio(String indEnvioObrigatorio) {
87      this.indEnvioObrigatorio = indEnvioObrigatorio;
88    }
89  
90    @ManyToOne(fetch = FetchType.LAZY)
91    @JoinColumn(name = "cod_cfg", insertable = false, updatable = false)
92    public ConfiguracaoCfg getConfiguracaoCfg() {
93      return this.configuracaoCfg;
94    }
95  
96    public void setConfiguracaoCfg(ConfiguracaoCfg configuracaoCfg) {
97      this.configuracaoCfg = configuracaoCfg;
98    }
99  
100   @OneToMany(fetch = FetchType.LAZY, mappedBy = "configMailCfgm")
101   public Set<TfuncacompConfigmailTfacfgm> getTfuncacompConfigmailTfacfgms() {
102     return this.tfuncacompConfigmailTfacfgms;
103   }
104 
105   public void setTfuncacompConfigmailTfacfgms(Set<TfuncacompConfigmailTfacfgm> tfuncacompConfigmailTfacfgms) {
106     this.tfuncacompConfigmailTfacfgms = tfuncacompConfigmailTfacfgms;
107   }
108 
109   @ManyToOne(fetch = FetchType.LAZY)
110   @JoinColumn(name = "cod_txts_sms")
111   public TextosSiteTxt getTextosSiteSms() {
112     return this.textosSiteSms;
113   }
114 
115   public void setTextosSiteSms(TextosSiteTxt textosSiteSms) {
116     this.textosSiteSms = textosSiteSms;
117   }
118 
119   @ManyToOne(fetch = FetchType.LAZY)
120   @JoinColumn(name = "cod_txts_mail")
121   public TextosSiteTxt getTextosSiteMail() {
122     return this.textosSiteMail;
123   }
124 
125   public void setTextosSiteMail(TextosSiteTxt textosSiteMail) {
126     this.textosSiteMail = textosSiteMail;
127   }
128 
129 }