Rev 265 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 265 | Rev 429 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | 2 | ||
| 3 | import java.util.Date; |
3 | import java.util.Date; |
| - | 4 | ||
| - | 5 | import br.com.ec.domain.model.Vigencia; |
|
| 4 | 6 | ||
| 5 | public class VigenciaDTO { |
7 | public class VigenciaDTO { |
| 6 | 8 | ||
| 7 | private Long sequencial; |
9 | private Long sequencial; |
| 8 | private String descricao; |
10 | private String descricao; |
| Line 14... | Line 16... | ||
| 14 | public VigenciaDTO(Long sequencial, String descricao, Date dataInicio, Date dataFim) { |
16 | public VigenciaDTO(Long sequencial, String descricao, Date dataInicio, Date dataFim) { |
| 15 | this.sequencial = sequencial; |
17 | this.sequencial = sequencial; |
| 16 | this.descricao = descricao; |
18 | this.descricao = descricao; |
| 17 | this.dataInicio = dataInicio; |
19 | this.dataInicio = dataInicio; |
| 18 | this.dataFim = dataFim; |
20 | this.dataFim = dataFim; |
| - | 21 | }
|
|
| - | 22 | ||
| - | 23 | public VigenciaDTO(Vigencia vigencia) { |
|
| - | 24 | this.sequencial = vigencia.getSequencial(); |
|
| - | 25 | this.descricao = vigencia.getDescricao(); |
|
| - | 26 | this.dataInicio = vigencia.getDataInicio(); |
|
| - | 27 | this.dataFim = vigencia.getDataFim(); |
|
| 19 | }
|
28 | }
|
| 20 | 29 | ||
| 21 | public Long getSequencial() { |
30 | public Long getSequencial() { |
| 22 | return sequencial; |
31 | return sequencial; |
| 23 | }
|
32 | }
|