Rev 195 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 195 | Rev 594 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | }
|
31 | }
|
| 32 | 32 | ||
| 33 | @Override |
33 | @Override |
| 34 | protected void regrasNegocioCadastrar(Taxa taxa) { |
34 | protected void regrasNegocioCadastrar(Taxa taxa) { |
| 35 | taxa.setAtivo(true); |
35 | taxa.setAtivo(true); |
| 36 | // verificarSeTaxaJaExiste(taxa);
|
- | |
| - | 36 | verificarSeTaxaJaExiste(taxa); |
|
| 37 | }
|
37 | }
|
| 38 | 38 | ||
| 39 | private void verificarSeTaxaJaExiste(Taxa taxa) { |
39 | private void verificarSeTaxaJaExiste(Taxa taxa) { |
| 40 | if (this.consultarPassandoEntidade(taxa, 0, 1).size() > 0) { |
40 | if (this.consultarPassandoEntidade(taxa, 0, 1).size() > 0) { |
| 41 | throw new NegocioException("Taxa já existe"); |
41 | throw new NegocioException("Taxa já existe"); |