wilian 2016-10-10 17:36:31 +00:00
parent d665eda909
commit 957ecadf3b
1 changed files with 10 additions and 4 deletions

View File

@ -2,13 +2,15 @@ package com.rjconsultores.ventaboletos.enums;
public enum SituacaoVendaPacote { public enum SituacaoVendaPacote {
PAGO("Pago"), PAGO(0,"Pago"),
RESERVA("Reserva"), RESERVA(1,"Reserva"),
CANCELADO("Cancelado"); CANCELADO(2,"Cancelado");
private Integer value;
private String descricao; private String descricao;
private SituacaoVendaPacote(String descricao) { private SituacaoVendaPacote(Integer value, String descricao) {
this.value = value;
this.descricao = descricao; this.descricao = descricao;
} }
@ -30,4 +32,8 @@ public enum SituacaoVendaPacote {
} }
} }
public Integer getShortValue() {
return value;
}
} }