Commit 1446fd6544fbf290c57d34fd79e3ef410ba1ed38
Exists in
master
Merge branch 'tarefa-4207' into adm-1.12.0
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
cit-adm-materiais-web/src/main/java/br/com/centralit/controller/MaterialConsumoController.java
... | ... | @@ -112,7 +112,7 @@ public class MaterialConsumoController extends GenericController<MaterialConsumo |
112 | 112 | }catch(Throwable e){ |
113 | 113 | if(e.getCause() instanceof ConstraintViolationException){ |
114 | 114 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
115 | - if(ex.getSQLException().getMessage().contains("codigo_unico_material")){ | |
115 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
116 | 116 | uniqueConstraintViolate = true; |
117 | 117 | }else{ |
118 | 118 | throw e; | ... | ... |
cit-adm-materiais-web/src/main/java/br/com/centralit/controller/MaterialPermanenteController.java
... | ... | @@ -100,7 +100,7 @@ public class MaterialPermanenteController extends GenericController<MaterialPerm |
100 | 100 | }catch(Throwable e){ |
101 | 101 | if(e.getCause() instanceof ConstraintViolationException){ |
102 | 102 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
103 | - if(ex.getSQLException().getMessage().contains("codigo_unico_material")){ | |
103 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
104 | 104 | uniqueConstraintViolate = true; |
105 | 105 | }else{ |
106 | 106 | throw e; | ... | ... |
cit-adm-materiais-web/src/main/java/br/com/centralit/controller/TransferenciaContaContabilController.java
... | ... | @@ -76,7 +76,7 @@ public class TransferenciaContaContabilController extends GenericController<Tran |
76 | 76 | }catch(Throwable e){ |
77 | 77 | if(e.getCause() instanceof ConstraintViolationException){ |
78 | 78 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
79 | - if(ex.getSQLException().getMessage().contains("codigo_unico_transferenciacc")){ | |
79 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
80 | 80 | uniqueConstraintViolate = true; |
81 | 81 | }else{ |
82 | 82 | throw e; | ... | ... |