1 package ecar.pojo;
2
3
4
5 import java.util.HashSet;
6 import java.util.Set;
7 import javax.persistence.CascadeType;
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 org.hibernate.annotations.GenericGenerator;
18
19
20
21
22 @Entity
23 @Table(name = "tb_iett_ind_resul_rev_iettrr")
24 public class IettIndResulRevIettrr implements java.io.Serializable {
25
26 private Long codIettirr;
27 private Set<ItemEstFisicoRevIettfr> itemEstFisicoRevIettfrs = new HashSet<ItemEstFisicoRevIettfr>(0);
28 private ItemEstruturarevisaoIettrev itemEstruturarevisaoIettrev;
29 private ItemEstrtIndResulIettr itemEstrtIndResulIettr;
30
31 public IettIndResulRevIettrr() {
32 }
33
34 public IettIndResulRevIettrr(Set<ItemEstFisicoRevIettfr> itemEstFisicoRevIettfrs, ItemEstruturarevisaoIettrev itemEstruturarevisaoIettrev, ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
35 this.itemEstFisicoRevIettfrs = itemEstFisicoRevIettfrs;
36 this.itemEstruturarevisaoIettrev = itemEstruturarevisaoIettrev;
37 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
38 }
39
40 @GenericGenerator(name = "generator", strategy = "increment")
41 @Id
42 @GeneratedValue(generator = "generator")
43 @Column(name = "cod_iettirr", nullable = false)
44 public Long getCodIettirr() {
45 return this.codIettirr;
46 }
47
48 public void setCodIettirr(Long codIettirr) {
49 this.codIettirr = codIettirr;
50 }
51
52 @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "iettIndResulRevIettrr")
53 public Set<ItemEstFisicoRevIettfr> getItemEstFisicoRevIettfrs() {
54 return this.itemEstFisicoRevIettfrs;
55 }
56
57 public void setItemEstFisicoRevIettfrs(Set<ItemEstFisicoRevIettfr> itemEstFisicoRevIettfrs) {
58 this.itemEstFisicoRevIettfrs = itemEstFisicoRevIettfrs;
59 }
60
61 @ManyToOne(fetch = FetchType.LAZY)
62 @JoinColumn(name = "cod_iettrev")
63 public ItemEstruturarevisaoIettrev getItemEstruturarevisaoIettrev() {
64 return this.itemEstruturarevisaoIettrev;
65 }
66
67 public void setItemEstruturarevisaoIettrev(ItemEstruturarevisaoIettrev itemEstruturarevisaoIettrev) {
68 this.itemEstruturarevisaoIettrev = itemEstruturarevisaoIettrev;
69 }
70
71 @ManyToOne(fetch = FetchType.LAZY)
72 @JoinColumn(name = "COD_IETTIR")
73 public ItemEstrtIndResulIettr getItemEstrtIndResulIettr() {
74 return this.itemEstrtIndResulIettr;
75 }
76
77 public void setItemEstrtIndResulIettr(ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
78 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
79 }
80
81 }