[Dive4elements-commits] [PATCH 4 of 4] river backend: Removed obsolete hibernate transformer class
Wald Commits
scm-commit at wald.intevation.org
Mon Apr 29 11:42:28 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1367228535 -7200
# Node ID a251ccee56e4fba7b0b458f157da87f0d88dedcd
# Parent ee5a791d8983d5c085cdce825f2f53bf6d38beae
river backend: Removed obsolete hibernate transformer class.
diff -r ee5a791d8983 -r a251ccee56e4 backend/src/main/java/de/intevation/hibernate/MapResultTransformer.java
--- a/backend/src/main/java/de/intevation/hibernate/MapResultTransformer.java Mon Apr 29 11:40:38 2013 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
- * Software engineering by Intevation GmbH
- *
- * This file is Free Software under the GNU AGPL (>=v3)
- * and comes with ABSOLUTELY NO WARRANTY! Check out the
- * documentation coming with Dive4Elements River for details.
- */
-
-package org.dive4elements.hibernate;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.hibernate.transform.BasicTransformerAdapter;
-
-public class MapResultTransformer
-extends BasicTransformerAdapter
-{
- public static final MapResultTransformer INSTANCE =
- new MapResultTransformer();
-
- public MapResultTransformer() {
- }
-
- @Override
- public Object transformTuple(Object [] tuple, String [] aliases) {
- Map<String, Object> map = new HashMap<String, Object>();
- for (int i = 0; i < tuple.length; ++i) {
- map.put(aliases[i], tuple[i]);
- }
- return map;
- }
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
More information about the Dive4elements-commits
mailing list