1 package ecar.pojo;
2
3
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
17
18 @Entity
19 @Table(name = "TB_HISTORICO_PONTO_CRITICO_COR_PTCCORH")
20 public class HistoricoCorPtcH implements java.io.Serializable {
21
22 private static final long serialVersionUID = 7653144632319319796L;
23
24 private Long codCorPtcH;
25 private Integer frequenciaEnvioEmailPtccor;
26 private Integer antecedenciaPrimEmailPtccor;
27 private String indAtivoEnvioEmailPtccor;
28 private PontoCriticoPtc pontoCriticoPtc;
29 private Cor cor;
30 private HistoricoPtcH historicoPtcH;
31
32 public HistoricoCorPtcH() {
33 }
34
35 public HistoricoCorPtcH(Integer frequenciaEnvioEmailPtccor, Integer antecedenciaPrimEmailPtccor, String indAtivoEnvioEmailPtccor, PontoCriticoPtc pontoCriticoPtc, Cor cor, HistoricoPtcH historicoPtcH) {
36 this.frequenciaEnvioEmailPtccor = frequenciaEnvioEmailPtccor;
37 this.antecedenciaPrimEmailPtccor = antecedenciaPrimEmailPtccor;
38 this.indAtivoEnvioEmailPtccor = indAtivoEnvioEmailPtccor;
39 this.pontoCriticoPtc = pontoCriticoPtc;
40 this.cor = cor;
41 this.historicoPtcH = historicoPtcH;
42 }
43
44 @GenericGenerator(name = "generator", strategy = "increment")
45 @Id
46 @GeneratedValue(generator = "generator")
47 @Column(name = "cod_cor_ptch", nullable = false)
48 public Long getCodCorPtcH() {
49 return this.codCorPtcH;
50 }
51
52 public void setCodCorPtcH(Long codCorPtcH) {
53 this.codCorPtcH = codCorPtcH;
54 }
55
56 @Column(name = "frequencia_envio_email_ptccor", length = 7)
57 public Integer getFrequenciaEnvioEmailPtccor() {
58 return this.frequenciaEnvioEmailPtccor;
59 }
60
61 public void setFrequenciaEnvioEmailPtccor(Integer frequenciaEnvioEmailPtccor) {
62 this.frequenciaEnvioEmailPtccor = frequenciaEnvioEmailPtccor;
63 }
64
65 @Column(name = "antecedencia_prim_email_ptccor", length = 7)
66 public Integer getAntecedenciaPrimEmailPtccor() {
67 return this.antecedenciaPrimEmailPtccor;
68 }
69
70 public void setAntecedenciaPrimEmailPtccor(Integer antecedenciaPrimEmailPtccor) {
71 this.antecedenciaPrimEmailPtccor = antecedenciaPrimEmailPtccor;
72 }
73
74 @Column(name = "ind_ativo_envio_email_ptccor", length = 1)
75 public String getIndAtivoEnvioEmailPtccor() {
76 return this.indAtivoEnvioEmailPtccor;
77 }
78
79 public void setIndAtivoEnvioEmailPtccor(String indAtivoEnvioEmailPtccor) {
80 this.indAtivoEnvioEmailPtccor = indAtivoEnvioEmailPtccor;
81 }
82
83 @ManyToOne(fetch = FetchType.LAZY)
84 @JoinColumn(name = "cod_ptc")
85 public PontoCriticoPtc getPontoCriticoPtc() {
86 return this.pontoCriticoPtc;
87 }
88
89 public void setPontoCriticoPtc(PontoCriticoPtc pontoCriticoPtc) {
90 this.pontoCriticoPtc = pontoCriticoPtc;
91 }
92
93 @ManyToOne(fetch = FetchType.LAZY)
94 @JoinColumn(name = "cod_cor")
95 public Cor getCor() {
96 return this.cor;
97 }
98
99 public void setCor(Cor cor) {
100 this.cor = cor;
101 }
102
103 @ManyToOne(fetch = FetchType.LAZY)
104 @JoinColumn(name = "cod_ptch")
105 public HistoricoPtcH getHistoricoPtcH() {
106 return this.historicoPtcH;
107 }
108
109 public void setHistoricoPtcH(HistoricoPtcH historicoPtcH) {
110 this.historicoPtcH = historicoPtcH;
111 }
112
113 }