1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.FetchType;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.JoinColumn;
12 import javax.persistence.ManyToOne;
13 import javax.persistence.Table;
14 import org.hibernate.annotations.GenericGenerator;
15
16
17
18
19 @Entity
20 @Table(name = "TB_CONTAS_REJEITADAS_CREJ")
21 public class ContasRejeitadasCrej implements java.io.Serializable {
22
23 private Long codCrej;
24 private Date dataUltManutencao;
25 private UsuarioUsu usuarioUsu;
26 private String contaCrej;
27
28 public ContasRejeitadasCrej() {
29 }
30
31 public ContasRejeitadasCrej(Date dataUltManutencao, String contaCrej) {
32 this.dataUltManutencao = dataUltManutencao;
33 this.contaCrej = contaCrej;
34 }
35
36 public ContasRejeitadasCrej(Date dataUltManutencao, UsuarioUsu usuarioUsu, String contaCrej) {
37 this.dataUltManutencao = dataUltManutencao;
38 this.usuarioUsu = usuarioUsu;
39 this.contaCrej = contaCrej;
40 }
41
42 @GenericGenerator(name = "generator", strategy = "increment")
43 @Id
44 @GeneratedValue(generator = "generator")
45 @Column(name = "COD_CREJ", nullable = false)
46 public Long getCodCrej() {
47 return this.codCrej;
48 }
49
50 public void setCodCrej(Long codCrej) {
51 this.codCrej = codCrej;
52 }
53
54 @Column(name = "DATA_ULT_MANUTENCAO", nullable = false)
55 public Date getDataUltManutencao() {
56 return this.dataUltManutencao;
57 }
58
59 public void setDataUltManutencao(Date dataUltManutencao) {
60 this.dataUltManutencao = dataUltManutencao;
61 }
62
63 @ManyToOne(fetch = FetchType.LAZY)
64 @JoinColumn(name = "COD_USU")
65 public UsuarioUsu getUsuarioUsu() {
66 return this.usuarioUsu;
67 }
68
69 public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
70 this.usuarioUsu = usuarioUsu;
71 }
72
73 @Column(name = "CONTA_CREJ", nullable = false)
74 public String getContaCrej() {
75 return this.contaCrej;
76 }
77
78 public void setContaCrej(String contaCrej) {
79 this.contaCrej = contaCrej;
80 }
81
82 }