Mercurial > lada > lada-server
changeset 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 | 379480a94c81 |
children | 539eb174bf23 |
files | src/main/java/de/intevation/lada/util/data/DefaultRepository.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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. *