1 package ecar.pojo;
2
3
4
5 import java.util.HashSet;
6 import java.util.Set;
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.FetchType;
10 import javax.persistence.GeneratedValue;
11 import javax.persistence.Id;
12 import javax.persistence.OneToMany;
13 import javax.persistence.Table;
14 import org.hibernate.annotations.GenericGenerator;
15
16
17
18
19 @Entity
20 @Table(name = "TB_POPUP_COMPORTAMENTO_PPPC")
21 public class PopupComportamentoPppc implements java.io.Serializable {
22
23 private Long codPppc;
24 private String descricaoPppc;
25 private Set<PopupPpp> popupPpps = new HashSet<PopupPpp>(0);
26
27 public PopupComportamentoPppc() {
28 }
29
30 public PopupComportamentoPppc(String descricaoPppc, Set<PopupPpp> popupPpps) {
31 this.descricaoPppc = descricaoPppc;
32 this.popupPpps = popupPpps;
33 }
34
35 @GenericGenerator(name = "generator", strategy = "increment")
36 @Id
37 @GeneratedValue(generator = "generator")
38 @Column(name = "COD_PPPC", nullable = false)
39 public Long getCodPppc() {
40 return this.codPppc;
41 }
42
43 public void setCodPppc(Long codPppc) {
44 this.codPppc = codPppc;
45 }
46
47 @Column(name = "DESCRICAO_PPPC", length = 30)
48 public String getDescricaoPppc() {
49 return this.descricaoPppc;
50 }
51
52 public void setDescricaoPppc(String descricaoPppc) {
53 this.descricaoPppc = descricaoPppc;
54 }
55
56 @OneToMany(fetch = FetchType.LAZY, mappedBy = "popupComportamentoPppc")
57 public Set<PopupPpp> getPopupPpps() {
58 return this.popupPpps;
59 }
60
61 public void setPopupPpps(Set<PopupPpp> popupPpps) {
62 this.popupPpps = popupPpps;
63 }
64
65 }