1 package ecar.pojo;
2
3
4
5 import javax.persistence.Column;
6 import javax.persistence.Entity;
7 import javax.persistence.GeneratedValue;
8 import javax.persistence.Id;
9 import javax.persistence.Table;
10 import org.hibernate.annotations.GenericGenerator;
11
12
13
14
15 @Entity
16 @Table(name = "TB_SEQUENCIADORA_SEQ")
17 public class SequenciadoraSeq implements java.io.Serializable {
18
19 private Long codSeq;
20 private String tabelaSeq;
21 private Long sequenciaSeq;
22
23 public SequenciadoraSeq() {
24 }
25
26 public SequenciadoraSeq(String tabelaSeq, Long sequenciaSeq) {
27 this.tabelaSeq = tabelaSeq;
28 this.sequenciaSeq = sequenciaSeq;
29 }
30
31 @GenericGenerator(name = "generator", strategy = "increment")
32 @Id
33 @GeneratedValue(generator = "generator")
34 @Column(name = "COD_SEQ", nullable = false)
35 public Long getCodSeq() {
36 return this.codSeq;
37 }
38
39 public void setCodSeq(Long codSeq) {
40 this.codSeq = codSeq;
41 }
42
43 @Column(name = "TABELA_SEQ", length = 30)
44 public String getTabelaSeq() {
45 return this.tabelaSeq;
46 }
47
48 public void setTabelaSeq(String tabelaSeq) {
49 this.tabelaSeq = tabelaSeq;
50 }
51
52 @Column(name = "SEQUENCIA_SEQ", length = 10)
53 public Long getSequenciaSeq() {
54 return this.sequenciaSeq;
55 }
56
57 public void setSequenciaSeq(Long sequenciaSeq) {
58 this.sequenciaSeq = sequenciaSeq;
59 }
60
61 }