raimund@711: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz raimund@711: * Software engineering by Intevation GmbH raimund@711: * raimund@711: * This file is Free Software under the GNU GPL (v>=3) raimund@711: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@711: * the documentation coming with IMIS-Labordaten-Application for details. raimund@711: */ raimund@673: package de.intevation.lada.util.data; raimund@673: raimund@673: import java.sql.Types; raimund@673: raimund@673: import org.hibernate.spatial.dialect.postgis.PostgisDialect; raimund@673: raimund@711: /** raimund@711: * This dialect extends the default postgis dialect and registers a new data raimund@711: * type for integer arrays. raimund@711: * raimund@711: * @author Raimund Renkert raimund@711: */ raimund@673: public class LadaPostgisDialect extends PostgisDialect { raimund@685: private static final long serialVersionUID = 1L; raimund@685: raimund@673: public LadaPostgisDialect() { raimund@673: super(); raimund@673: this.registerColumnType(Types.ARRAY, "integer[]"); raimund@1299: this.registerColumnType(Types.JAVA_OBJECT, "json"); raimund@673: } raimund@673: }