Mercurial > lada > lada-server
diff src/main/java/de/intevation/lada/util/data/DefaultRepository.java @ 1290:14876c62f692
Push down refreshing of persisted objects deeper into the stack.
There are more places besides creation of Probe objects where it is
useful to return within the response what has been really written to
the database (including modifications by the database itself) instead
of merely the request data, e.g. creation of Ort objects, which
includes database generated ort_ids.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 08 Feb 2017 18:02:05 +0100 |
parents | 58fc5b5fad4b |
children |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/util/data/DefaultRepository.java Wed Feb 08 17:46:45 2017 +0100 +++ b/src/main/java/de/intevation/lada/util/data/DefaultRepository.java Wed Feb 08 18:02:05 2017 +0100 @@ -44,7 +44,8 @@ * @param object The new object. * @param dataSource The datasource. * - * @return Response object containing the new object. + * @return Response object containing the new object, potentially + * modified by the database. */ @Override public Response create(Object object, String dataSource) {