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_DIA_SEMANA_DSM")
17 public class DiaSemanaDsm implements java.io.Serializable {
18
19 private Long codDsm;
20 private String indDiaUtilDsm;
21 private String descricaoDsm;
22
23 public DiaSemanaDsm() {
24 }
25
26 public DiaSemanaDsm(String indDiaUtilDsm, String descricaoDsm) {
27 this.indDiaUtilDsm = indDiaUtilDsm;
28 this.descricaoDsm = descricaoDsm;
29 }
30
31 @GenericGenerator(name = "generator", strategy = "increment")
32 @Id
33 @GeneratedValue(generator = "generator")
34 @Column(name = "COD_DSM", nullable = false)
35 public Long getCodDsm() {
36 return this.codDsm;
37 }
38
39 public void setCodDsm(Long codDsm) {
40 this.codDsm = codDsm;
41 }
42
43 @Column(name = "IND_DIA_UTIL_DSM", length = 1)
44 public String getIndDiaUtilDsm() {
45 return this.indDiaUtilDsm;
46 }
47
48 public void setIndDiaUtilDsm(String indDiaUtilDsm) {
49 this.indDiaUtilDsm = indDiaUtilDsm;
50 }
51
52 @Column(name = "DESCRICAO_DSM", length = 20)
53 public String getDescricaoDsm() {
54 return this.descricaoDsm;
55 }
56
57 public void setDescricaoDsm(String descricaoDsm) {
58 this.descricaoDsm = descricaoDsm;
59 }
60
61 }