Commit ed59875862c0f5670355cd8844f383e4381b0c92
1 parent
f99512ad
Exists in
master
Redmine #4207
Showing
5 changed files
with
5 additions
and
5 deletions
Show diff stats
cit-almoxarifado-web/src/main/java/br/com/centralit/controller/AtendimentoRequisicaoConsumoController.java
... | ... | @@ -137,7 +137,7 @@ public class AtendimentoRequisicaoConsumoController extends GenericController<At |
137 | 137 | }catch(Throwable e){ |
138 | 138 | if(e.getCause() instanceof ConstraintViolationException){ |
139 | 139 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
140 | - if(ex.getSQLException().getMessage().contains("codigo_unico_atendimento")){ | |
140 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
141 | 141 | uniqueConstraintViolate = true; |
142 | 142 | }else{ |
143 | 143 | throw e; | ... | ... |
cit-almoxarifado-web/src/main/java/br/com/centralit/controller/BaixaAlmoxarifadoController.java
... | ... | @@ -70,7 +70,7 @@ public class BaixaAlmoxarifadoController extends GenericController<BaixaAlmoxari |
70 | 70 | }catch(Throwable e){ |
71 | 71 | if(e.getCause() instanceof ConstraintViolationException){ |
72 | 72 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
73 | - if(ex.getSQLException().getMessage().contains("codigo_unico_baixaal")){ | |
73 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
74 | 74 | uniqueConstraintViolate = true; |
75 | 75 | }else{ |
76 | 76 | throw e; | ... | ... |
cit-almoxarifado-web/src/main/java/br/com/centralit/controller/DevolucaoController.java
... | ... | @@ -112,7 +112,7 @@ public class DevolucaoController extends GenericController<Devolucao> { |
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_devolucao")){ | |
115 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
116 | 116 | uniqueConstraintViolate = true; |
117 | 117 | }else{ |
118 | 118 | throw e; | ... | ... |
cit-almoxarifado-web/src/main/java/br/com/centralit/controller/EntradaAlmoxarifadoController.java
... | ... | @@ -91,7 +91,7 @@ public class EntradaAlmoxarifadoController extends GenericController<EntradaAlmo |
91 | 91 | }catch(Throwable e){ |
92 | 92 | if(e.getCause() instanceof ConstraintViolationException){ |
93 | 93 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
94 | - if(ex.getSQLException().getMessage().contains("codigo_unico_entradaal") || ex.getSQLException().getMessage().contains("codigo_unico_entrada")){ | |
94 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
95 | 95 | uniqueConstraintViolate = true; |
96 | 96 | }else{ |
97 | 97 | throw e; | ... | ... |
cit-almoxarifado-web/src/main/java/br/com/centralit/controller/RequisicaoConsumoController.java
... | ... | @@ -138,7 +138,7 @@ public class RequisicaoConsumoController extends GenericController<RequisicaoCon |
138 | 138 | }catch(Throwable e){ |
139 | 139 | if(e.getCause() instanceof ConstraintViolationException){ |
140 | 140 | ConstraintViolationException ex = (ConstraintViolationException) e.getCause(); |
141 | - if(ex.getSQLException().getMessage().contains("codigo_unico_reqconsumo")){ | |
141 | + if(ex.getSQLException().getMessage().contains("codigo_unico")){ | |
142 | 142 | uniqueConstraintViolate = true; |
143 | 143 | }else{ |
144 | 144 | throw e; | ... | ... |