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_CONFIG_TIPO_DADO_CTD")
21 public class ConfigTipoDadoCtd implements java.io.Serializable {
22
23 private Long codCtd;
24 private String idRotinaCtd;
25 private String nomeCtd;
26 private Set<ConfigExecFinanCef> configExecFinanCefs = new HashSet<ConfigExecFinanCef>(0);
27
28 public ConfigTipoDadoCtd() {
29 }
30
31 public ConfigTipoDadoCtd(String idRotinaCtd, String nomeCtd, Set<ConfigExecFinanCef> configExecFinanCefs) {
32 this.idRotinaCtd = idRotinaCtd;
33 this.nomeCtd = nomeCtd;
34 this.configExecFinanCefs = configExecFinanCefs;
35 }
36
37 @GenericGenerator(name = "generator", strategy = "increment")
38 @Id
39 @GeneratedValue(generator = "generator")
40 @Column(name = "COD_CTD", nullable = false)
41 public Long getCodCtd() {
42 return this.codCtd;
43 }
44
45 public void setCodCtd(Long codCtd) {
46 this.codCtd = codCtd;
47 }
48
49 @Column(name = "ID_ROTINA_CTD", length = 20)
50 public String getIdRotinaCtd() {
51 return this.idRotinaCtd;
52 }
53
54 public void setIdRotinaCtd(String idRotinaCtd) {
55 this.idRotinaCtd = idRotinaCtd;
56 }
57
58 @Column(name = "NOME_CTD", length = 40)
59 public String getNomeCtd() {
60 return this.nomeCtd;
61 }
62
63 public void setNomeCtd(String nomeCtd) {
64 this.nomeCtd = nomeCtd;
65 }
66
67 @OneToMany(fetch = FetchType.LAZY, mappedBy = "configTipoDadoCtd")
68 public Set<ConfigExecFinanCef> getConfigExecFinanCefs() {
69 return this.configExecFinanCefs;
70 }
71
72 public void setConfigExecFinanCefs(Set<ConfigExecFinanCef> configExecFinanCefs) {
73 this.configExecFinanCefs = configExecFinanCefs;
74 }
75
76 }