1 package ecar.pojo;
2
3
4
5 import java.math.BigDecimal;
6 import javax.persistence.AttributeOverride;
7 import javax.persistence.AttributeOverrides;
8 import javax.persistence.Column;
9 import javax.persistence.EmbeddedId;
10 import javax.persistence.Entity;
11 import javax.persistence.FetchType;
12 import javax.persistence.JoinColumn;
13 import javax.persistence.ManyToOne;
14 import javax.persistence.Table;
15
16
17
18
19 @Entity
20 @Table(name = "tb_iettindresul_cor_iettrcor")
21 public class ItemEstrtIndResulCorIettrcor implements java.io.Serializable {
22
23 private ItemEstrtIndResulCorIettrcorPK id;
24 private Integer frequenciaEnvioEmailIettrcor;
25 private BigDecimal valorPrimEmailIettrcor;
26 private String indAtivoEnvioEmailIettrcor;
27 private String indMenorValorIettrcor;
28 private String indMaiorValorIettrcor;
29 private Integer sequenciaIettrcor;
30 private ItemEstrtIndResulIettr itemEstrtIndResulIettr;
31 private Cor cor;
32
33 public ItemEstrtIndResulCorIettrcor() {
34 }
35
36 public ItemEstrtIndResulCorIettrcor(ItemEstrtIndResulCorIettrcorPK id) {
37 this.id = id;
38 }
39
40 public ItemEstrtIndResulCorIettrcor(ItemEstrtIndResulCorIettrcorPK id, Integer frequenciaEnvioEmailIettrcor, BigDecimal valorPrimEmailIettrcor, String indAtivoEnvioEmailIettrcor, String indMenorValorIettrcor, String indMaiorValorIettrcor, Integer sequenciaIettrcor, ItemEstrtIndResulIettr itemEstrtIndResulIettr, Cor cor) {
41 this.id = id;
42 this.frequenciaEnvioEmailIettrcor = frequenciaEnvioEmailIettrcor;
43 this.valorPrimEmailIettrcor = valorPrimEmailIettrcor;
44 this.indAtivoEnvioEmailIettrcor = indAtivoEnvioEmailIettrcor;
45 this.indMenorValorIettrcor = indMenorValorIettrcor;
46 this.indMaiorValorIettrcor = indMaiorValorIettrcor;
47 this.sequenciaIettrcor = sequenciaIettrcor;
48 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
49 this.cor = cor;
50 }
51
52 @EmbeddedId
53 @AttributeOverrides( { @AttributeOverride(name = "codIettir", column = @Column(name = "COD_IETTIR", nullable = false, length = 10)), @AttributeOverride(name = "codCor", column = @Column(name = "COD_COR", nullable = false, length = 10)) })
54 public ItemEstrtIndResulCorIettrcorPK getId() {
55 return this.id;
56 }
57
58 public void setId(ItemEstrtIndResulCorIettrcorPK id) {
59 this.id = id;
60 }
61
62 @Column(name = "frequencia_envio_email_iettrcor", length = 7)
63 public Integer getFrequenciaEnvioEmailIettrcor() {
64 return this.frequenciaEnvioEmailIettrcor;
65 }
66
67 public void setFrequenciaEnvioEmailIettrcor(Integer frequenciaEnvioEmailIettrcor) {
68 this.frequenciaEnvioEmailIettrcor = frequenciaEnvioEmailIettrcor;
69 }
70
71 @Column(name = "valor_prim_email_iettrcor", length = 7)
72 public BigDecimal getValorPrimEmailIettrcor() {
73 return this.valorPrimEmailIettrcor;
74 }
75
76 public void setValorPrimEmailIettrcor(BigDecimal valorPrimEmailIettrcor) {
77 this.valorPrimEmailIettrcor = valorPrimEmailIettrcor;
78 }
79
80 @Column(name = "ind_ativo_envio_email_iettrcor", length = 1)
81 public String getIndAtivoEnvioEmailIettrcor() {
82 return this.indAtivoEnvioEmailIettrcor;
83 }
84
85 public void setIndAtivoEnvioEmailIettrcor(String indAtivoEnvioEmailIettrcor) {
86 this.indAtivoEnvioEmailIettrcor = indAtivoEnvioEmailIettrcor;
87 }
88
89 @Column(name = "ind_menor_valor_iettrcor", length = 1)
90 public String getIndMenorValorIettrcor() {
91 return this.indMenorValorIettrcor;
92 }
93
94 public void setIndMenorValorIettrcor(String indMenorValorIettrcor) {
95 this.indMenorValorIettrcor = indMenorValorIettrcor;
96 }
97
98 @Column(name = "ind_maior_valor_iettrcor", length = 1)
99 public String getIndMaiorValorIettrcor() {
100 return this.indMaiorValorIettrcor;
101 }
102
103 public void setIndMaiorValorIettrcor(String indMaiorValorIettrcor) {
104 this.indMaiorValorIettrcor = indMaiorValorIettrcor;
105 }
106
107 @Column(name = "sequencia_iettrcor", length = 7)
108 public Integer getSequenciaIettrcor() {
109 return this.sequenciaIettrcor;
110 }
111
112 public void setSequenciaIettrcor(Integer sequenciaIettrcor) {
113 this.sequenciaIettrcor = sequenciaIettrcor;
114 }
115
116 @ManyToOne(fetch = FetchType.LAZY)
117 @JoinColumn(name = "cod_iettir", insertable = false, updatable = false)
118 public ItemEstrtIndResulIettr getItemEstrtIndResulIettr() {
119 return this.itemEstrtIndResulIettr;
120 }
121
122 public void setItemEstrtIndResulIettr(ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
123 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
124 }
125
126 @ManyToOne(fetch = FetchType.LAZY)
127 @JoinColumn(name = "cod_cor", insertable = false, updatable = false)
128 public Cor getCor() {
129 return this.cor;
130 }
131
132 public void setCor(Cor cor) {
133 this.cor = cor;
134 }
135
136 }