Rev 297 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 297 | Rev 721 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | 4 | ||
| 5 | private Long sequencial; |
5 | private Long sequencial; |
| 6 | private CategoriaDTO categoria; |
6 | private CategoriaDTO categoria; |
| 7 | // private Venda venda;
|
7 | // private Venda venda;
|
| 8 | // private Pessoa pessoa;
|
8 | // private Pessoa pessoa;
|
| 9 | // private Loja loja;
|
- | |
| - | 9 | private LojaDTO loja; |
|
| 10 | // private ContaFormaPagamento formaDePagamento;
|
10 | // private ContaFormaPagamento formaDePagamento;
|
| 11 | // private Vigencia vigencia;
|
11 | // private Vigencia vigencia;
|
| 12 | 12 | ||
| 13 | // private String tipoFrequencia;
|
13 | // private String tipoFrequencia;
|
| 14 | // private String tipoConta;
|
14 | // private String tipoConta;
|
| Line 16... | Line 16... | ||
| 16 | // private Boolean indicadorAtivo;
|
16 | // private Boolean indicadorAtivo;
|
| 17 | 17 | ||
| 18 | // private Compra compra;
|
18 | // private Compra compra;
|
| 19 | 19 | ||
| 20 | public ContaDTO() {} |
20 | public ContaDTO() {} |
| - | 21 | ||
| - | 22 | public ContaDTO(Long sequencial, Long sequenciaCategoria, String descricaoCategoria, Long sequencialLoja, String descricaoLoja) { |
|
| - | 23 | super(); |
|
| - | 24 | this.sequencial = sequencial; |
|
| - | 25 | this.categoria = new CategoriaDTO(sequenciaCategoria, descricaoCategoria); |
|
| - | 26 | this.loja = new LojaDTO(sequencialLoja, descricaoLoja); |
|
| - | 27 | }
|
|
| 21 | 28 | ||
| - | 29 | public Long getSequencial() { |
|
| - | 30 | return sequencial; |
|
| - | 31 | }
|
|
| - | 32 | public void setSequencial(Long sequencial) { |
|
| - | 33 | this.sequencial = sequencial; |
|
| - | 34 | }
|
|
| - | 35 | ||
| - | 36 | public CategoriaDTO getCategoria() { |
|
| - | 37 | return categoria; |
|
| - | 38 | }
|
|
| - | 39 | public void setCategoria(CategoriaDTO categoria) { |
|
| - | 40 | this.categoria = categoria; |
|
| - | 41 | }
|
|
| - | 42 | ||
| - | 43 | public LojaDTO getLoja() { |
|
| - | 44 | return loja; |
|
| - | 45 | }
|
|
| - | 46 | public void setLoja(LojaDTO loja) { |
|
| - | 47 | this.loja = loja; |
|
| - | 48 | }
|
|
| 22 | 49 | ||
| 23 | - | ||
| 24 | @Override |
50 | @Override |
| 25 | public int hashCode() { |
51 | public int hashCode() { |
| 26 | final int prime = 31; |
52 | final int prime = 31; |
| 27 | int result = 1; |
53 | int result = 1; |
| 28 | result = prime * result + ((sequencial == null) ? 0 : sequencial.hashCode()); |
54 | result = prime * result + ((sequencial == null) ? 0 : sequencial.hashCode()); |