comparison 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
comparison
equal deleted inserted replaced
954:379480a94c81 955:58fc5b5fad4b
126 return new Response(false, 602, object); 126 return new Response(false, 602, object);
127 } 127 }
128 catch (TransactionRequiredException tre) { 128 catch (TransactionRequiredException tre) {
129 return new Response(false, 603, object); 129 return new Response(false, 603, object);
130 } 130 }
131 catch (EJBTransactionRolledbackException ete) {
132 return new Response(false, 696, object);
133 }
131 return response; 134 return response;
132 } 135 }
136
133 /** 137 /**
134 * Get objects from database using the given filter. 138 * Get objects from database using the given filter.
135 * 139 *
136 * @param filter Filter used to request objects. 140 * @param filter Filter used to request objects.
137 * @param datasource The datasource. 141 * @param datasource The datasource.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)