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_DESTAQUE_ITEM_REL_DTQIR")
20 public class DestaqueItemRelDtqir implements java.io.Serializable {
21
22 private Long codDtqir;
23 private AgendaAge agendaAge;
24 private AgendaOcorrenciaAgeo agendaOcorrenciaAgeo;
25 private DestaqueSubAreaDtqsa destaqueSubAreaDtqsa;
26 private SegmentoItemSgti segmentoItemSgti;
27
28 public DestaqueItemRelDtqir() {
29 }
30
31 public DestaqueItemRelDtqir(AgendaAge agendaAge, AgendaOcorrenciaAgeo agendaOcorrenciaAgeo, DestaqueSubAreaDtqsa destaqueSubAreaDtqsa, SegmentoItemSgti segmentoItemSgti) {
32 this.agendaAge = agendaAge;
33 this.agendaOcorrenciaAgeo = agendaOcorrenciaAgeo;
34 this.destaqueSubAreaDtqsa = destaqueSubAreaDtqsa;
35 this.segmentoItemSgti = segmentoItemSgti;
36 }
37
38 @GenericGenerator(name = "generator", strategy = "increment")
39 @Id
40 @GeneratedValue(generator = "generator")
41 @Column(name = "COD_DTQIR", nullable = false)
42 public Long getCodDtqir() {
43 return this.codDtqir;
44 }
45
46 public void setCodDtqir(Long codDtqir) {
47 this.codDtqir = codDtqir;
48 }
49
50 @ManyToOne(fetch = FetchType.LAZY)
51 @JoinColumn(name = "COD_AGE")
52 public AgendaAge getAgendaAge() {
53 return this.agendaAge;
54 }
55
56 public void setAgendaAge(AgendaAge agendaAge) {
57 this.agendaAge = agendaAge;
58 }
59
60 @ManyToOne(fetch = FetchType.LAZY)
61 @JoinColumn(name = "COD_AGEO")
62 public AgendaOcorrenciaAgeo getAgendaOcorrenciaAgeo() {
63 return this.agendaOcorrenciaAgeo;
64 }
65
66 public void setAgendaOcorrenciaAgeo(AgendaOcorrenciaAgeo agendaOcorrenciaAgeo) {
67 this.agendaOcorrenciaAgeo = agendaOcorrenciaAgeo;
68 }
69
70 @ManyToOne(fetch = FetchType.LAZY)
71 @JoinColumn(name = "COD_DTQSA")
72 public DestaqueSubAreaDtqsa getDestaqueSubAreaDtqsa() {
73 return this.destaqueSubAreaDtqsa;
74 }
75
76 public void setDestaqueSubAreaDtqsa(DestaqueSubAreaDtqsa destaqueSubAreaDtqsa) {
77 this.destaqueSubAreaDtqsa = destaqueSubAreaDtqsa;
78 }
79
80 @ManyToOne(fetch = FetchType.LAZY)
81 @JoinColumn(name = "COD_SGTI")
82 public SegmentoItemSgti getSegmentoItemSgti() {
83 return this.segmentoItemSgti;
84 }
85
86 public void setSegmentoItemSgti(SegmentoItemSgti segmentoItemSgti) {
87 this.segmentoItemSgti = segmentoItemSgti;
88 }
89
90 }