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.JoinColumn;
14 import javax.persistence.ManyToOne;
15 import javax.persistence.OneToMany;
16 import javax.persistence.Table;
17 import javax.persistence.Temporal;
18 import javax.persistence.TemporalType;
19 import org.hibernate.annotations.GenericGenerator;
20
21
22
23
24 @Entity
25 @Table(name = "TB_AGENDA_OCORRENCIA_AGEO")
26 public class AgendaOcorrenciaAgeo implements java.io.Serializable {
27
28 private Long codAgeo;
29 private String localAgeo;
30 private String descricaoAgeo;
31 private Integer minutoEventoAgeo;
32 private Integer horaEventoAgeo;
33 private Date dataEventoAgeo;
34 private AgendaAge agendaAge;
35 private Set<ItemEstrutVinculoIettv> itemEstrutVinculoIettvs = new HashSet<ItemEstrutVinculoIettv>(0);
36 private Set<DestaqueItemRelDtqir> destaqueItemRelDtqirs = new HashSet<DestaqueItemRelDtqir>(0);
37
38 public AgendaOcorrenciaAgeo() {
39 }
40
41 public AgendaOcorrenciaAgeo(String localAgeo, String descricaoAgeo, Integer minutoEventoAgeo, Integer horaEventoAgeo, Date dataEventoAgeo, AgendaAge agendaAge, Set<ItemEstrutVinculoIettv> itemEstrutVinculoIettvs, Set<DestaqueItemRelDtqir> destaqueItemRelDtqirs) {
42 this.localAgeo = localAgeo;
43 this.descricaoAgeo = descricaoAgeo;
44 this.minutoEventoAgeo = minutoEventoAgeo;
45 this.horaEventoAgeo = horaEventoAgeo;
46 this.dataEventoAgeo = dataEventoAgeo;
47 this.agendaAge = agendaAge;
48 this.itemEstrutVinculoIettvs = itemEstrutVinculoIettvs;
49 this.destaqueItemRelDtqirs = destaqueItemRelDtqirs;
50 }
51
52 @GenericGenerator(name = "generator", strategy = "increment")
53 @Id
54 @GeneratedValue(generator = "generator")
55 @Column(name = "COD_AGEO", nullable = false)
56 public Long getCodAgeo() {
57 return this.codAgeo;
58 }
59
60 public void setCodAgeo(Long codAgeo) {
61 this.codAgeo = codAgeo;
62 }
63
64 @Column(name = "LOCAL_AGEO", length = 2000)
65 public String getLocalAgeo() {
66 return this.localAgeo;
67 }
68
69 public void setLocalAgeo(String localAgeo) {
70 this.localAgeo = localAgeo;
71 }
72
73 @Column(name = "DESCRICAO_AGEO", length = 2000)
74 public String getDescricaoAgeo() {
75 return this.descricaoAgeo;
76 }
77
78 public void setDescricaoAgeo(String descricaoAgeo) {
79 this.descricaoAgeo = descricaoAgeo;
80 }
81
82 @Column(name = "MINUTO_EVENTO_AGEO", length = 2)
83 public Integer getMinutoEventoAgeo() {
84 return this.minutoEventoAgeo;
85 }
86
87 public void setMinutoEventoAgeo(Integer minutoEventoAgeo) {
88 this.minutoEventoAgeo = minutoEventoAgeo;
89 }
90
91 @Column(name = "HORA_EVENTO_AGEO", length = 2)
92 public Integer getHoraEventoAgeo() {
93 return this.horaEventoAgeo;
94 }
95
96 public void setHoraEventoAgeo(Integer horaEventoAgeo) {
97 this.horaEventoAgeo = horaEventoAgeo;
98 }
99
100 @Temporal(TemporalType.TIMESTAMP)
101 @Column(name = "DATA_EVENTO_AGEO", length = 7)
102 public Date getDataEventoAgeo() {
103 return this.dataEventoAgeo;
104 }
105
106 public void setDataEventoAgeo(Date dataEventoAgeo) {
107 this.dataEventoAgeo = dataEventoAgeo;
108 }
109
110 @ManyToOne(fetch = FetchType.LAZY)
111 @JoinColumn(name = "COD_AGE")
112 public AgendaAge getAgendaAge() {
113 return this.agendaAge;
114 }
115
116 public void setAgendaAge(AgendaAge agendaAge) {
117 this.agendaAge = agendaAge;
118 }
119
120 @OneToMany(fetch = FetchType.LAZY, mappedBy = "agendaOcorrenciaAgeo")
121 public Set<ItemEstrutVinculoIettv> getItemEstrutVinculoIettvs() {
122 return this.itemEstrutVinculoIettvs;
123 }
124
125 public void setItemEstrutVinculoIettvs(Set<ItemEstrutVinculoIettv> itemEstrutVinculoIettvs) {
126 this.itemEstrutVinculoIettvs = itemEstrutVinculoIettvs;
127 }
128
129 @OneToMany(fetch = FetchType.LAZY, mappedBy = "agendaOcorrenciaAgeo")
130 public Set<DestaqueItemRelDtqir> getDestaqueItemRelDtqirs() {
131 return this.destaqueItemRelDtqirs;
132 }
133
134 public void setDestaqueItemRelDtqirs(Set<DestaqueItemRelDtqir> destaqueItemRelDtqirs) {
135 this.destaqueItemRelDtqirs = destaqueItemRelDtqirs;
136 }
137
138 }