1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import java.util.HashSet;
7 import java.util.Set;
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.OneToMany;
14 import javax.persistence.Table;
15 import javax.persistence.Temporal;
16 import javax.persistence.TemporalType;
17 import org.hibernate.annotations.GenericGenerator;
18
19
20
21
22 @Entity
23 @Table(name = "TB_CONTATO_AREA_CTTA")
24 public class ContatoAreaCtta implements java.io.Serializable {
25
26 private Long codCtta;
27 private String nomeCtta;
28 private String assuntoRetornoCtta;
29 private String indEmailRespostaCtta;
30 private String indLogadoCtta;
31 private String indAtivoCtta;
32 private Date dataInclusaoCtta;
33 private String textoRetornoCtta;
34 private Set<ContatoMailCttm> contatoMailCttms = new HashSet<ContatoMailCttm>(0);
35
36 public ContatoAreaCtta() {
37 }
38
39 public ContatoAreaCtta(String nomeCtta, String assuntoRetornoCtta, String indEmailRespostaCtta, String indLogadoCtta, String indAtivoCtta, Date dataInclusaoCtta, String textoRetornoCtta, Set<ContatoMailCttm> contatoMailCttms) {
40 this.nomeCtta = nomeCtta;
41 this.assuntoRetornoCtta = assuntoRetornoCtta;
42 this.indEmailRespostaCtta = indEmailRespostaCtta;
43 this.indLogadoCtta = indLogadoCtta;
44 this.indAtivoCtta = indAtivoCtta;
45 this.dataInclusaoCtta = dataInclusaoCtta;
46 this.textoRetornoCtta = textoRetornoCtta;
47 this.contatoMailCttms = contatoMailCttms;
48 }
49
50 @GenericGenerator(name = "generator", strategy = "increment")
51 @Id
52 @GeneratedValue(generator = "generator")
53 @Column(name = "COD_CTTA", nullable = false)
54 public Long getCodCtta() {
55 return this.codCtta;
56 }
57
58 public void setCodCtta(Long codCtta) {
59 this.codCtta = codCtta;
60 }
61
62 @Column(name = "NOME_CTTA", length = 30)
63 public String getNomeCtta() {
64 return this.nomeCtta;
65 }
66
67 public void setNomeCtta(String nomeCtta) {
68 this.nomeCtta = nomeCtta;
69 }
70
71 @Column(name = "ASSUNTO_RETORNO_CTTA", length = 20)
72 public String getAssuntoRetornoCtta() {
73 return this.assuntoRetornoCtta;
74 }
75
76 public void setAssuntoRetornoCtta(String assuntoRetornoCtta) {
77 this.assuntoRetornoCtta = assuntoRetornoCtta;
78 }
79
80 @Column(name = "IND_EMAIL_RESPOSTA_CTTA", length = 1)
81 public String getIndEmailRespostaCtta() {
82 return this.indEmailRespostaCtta;
83 }
84
85 public void setIndEmailRespostaCtta(String indEmailRespostaCtta) {
86 this.indEmailRespostaCtta = indEmailRespostaCtta;
87 }
88
89 @Column(name = "IND_LOGADO_CTTA", length = 1)
90 public String getIndLogadoCtta() {
91 return this.indLogadoCtta;
92 }
93
94 public void setIndLogadoCtta(String indLogadoCtta) {
95 this.indLogadoCtta = indLogadoCtta;
96 }
97
98 @Column(name = "IND_ATIVO_CTTA", length = 1)
99 public String getIndAtivoCtta() {
100 return this.indAtivoCtta;
101 }
102
103 public void setIndAtivoCtta(String indAtivoCtta) {
104 this.indAtivoCtta = indAtivoCtta;
105 }
106
107 @Temporal(TemporalType.TIMESTAMP)
108 @Column(name = "DATA_INCLUSAO_CTTA", length = 7)
109 public Date getDataInclusaoCtta() {
110 return this.dataInclusaoCtta;
111 }
112
113 public void setDataInclusaoCtta(Date dataInclusaoCtta) {
114 this.dataInclusaoCtta = dataInclusaoCtta;
115 }
116
117 @Column(name = "TEXTO_RETORNO_CTTA", length = 2000)
118 public String getTextoRetornoCtta() {
119 return this.textoRetornoCtta;
120 }
121
122 public void setTextoRetornoCtta(String textoRetornoCtta) {
123 this.textoRetornoCtta = textoRetornoCtta;
124 }
125
126 @OneToMany(fetch = FetchType.LAZY, mappedBy = "contatoAreaCtta")
127 public Set<ContatoMailCttm> getContatoMailCttms() {
128 return this.contatoMailCttms;
129 }
130
131 public void setContatoMailCttms(Set<ContatoMailCttm> contatoMailCttms) {
132 this.contatoMailCttms = contatoMailCttms;
133 }
134
135 }