Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/util/data/DefaultRepository.java @ 955:58fc5b5fad4b
The database might refuse to delete an object e.g. due to FK constraints.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 25 May 2016 16:51:55 +0200 |
parents | d74b5b1190ae |
children | 14876c62f692 |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/util/data/DefaultRepository.java Tue May 24 17:15:44 2016 +0200 +++ b/src/main/java/de/intevation/lada/util/data/DefaultRepository.java Wed May 25 16:51:55 2016 +0200 @@ -128,8 +128,12 @@ catch (TransactionRequiredException tre) { return new Response(false, 603, object); } + catch (EJBTransactionRolledbackException ete) { + return new Response(false, 696, object); + } return response; } + /** * Get objects from database using the given filter. *