Commit c62ccf098d6d01ebc8c03bd294cba32936f7e789
Exists in
master
Merge branch 'tarefa-4207' into adm-1.12.0
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
cit-tabelas-corp-web/src/main/java/br/com/centralit/controller/ComissaoController.java
... | ... | @@ -94,7 +94,7 @@ public class ComissaoController extends GenericController<Comissao> { |
94 | 94 | }catch(Throwable e){ |
95 | 95 | if(e.getCause() instanceof ConstraintViolationException){ |
96 | 96 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
97 | - if(ex.getSQLException().getMessage().contains("codigo_unico_comissao")){ | |
97 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
98 | 98 | uniqueConstraintViolate = true; |
99 | 99 | }else{ |
100 | 100 | throw e; | ... | ... |