Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 760 | blopes | 1 | package br.com.sl.domain.dto; |
| 2 | |||
| 3 | import br.com.ec.core.util.StringUtil; |
||
| 4 | |||
| 5 | public class PessoaDTO { |
||
| 6 | |||
| 7 | private Long sequencial; |
||
| 8 | private String nome; |
||
| 9 | private boolean ativo; |
||
| 10 | |||
| 11 | public PessoaDTO() {} |
||
| 12 | |||
| 13 | public PessoaDTO(Long sequencial, String nome) { |
||
| 14 | super(); |
||
| 15 | this.sequencial = sequencial; |
||
| 16 | this.nome = nome; |
||
| 17 | } |
||
| 18 | |||
| 19 | public static String CONSULTA_DTO = "e.sequencial, e.nome, e.ativo"; |
||
| 20 | public PessoaDTO(Long sequencial, String nome, Boolean ativo) { |
||
| 21 | super(); |
||
| 22 | this.sequencial = sequencial; |
||
| 23 | this.nome = nome; |
||
| 24 | this.ativo = ativo; |
||
| 25 | } |
||
| 26 | |||
| 27 | public Long getSequencial() { |
||
| 28 | return sequencial; |
||
| 29 | } |
||
| 30 | public void setSequencial(Long sequencial) { |
||
| 31 | this.sequencial = sequencial; |
||
| 32 | } |
||
| 33 | |||
| 34 | public String getNome() { |
||
| 35 | return nome; |
||
| 36 | } |
||
| 37 | public void setNome(String nome) { |
||
| 38 | this.nome = StringUtil.setarUpperCaseComTrim(nome); |
||
| 39 | } |
||
| 40 | |||
| 41 | } |