annotate src/main/java/de/intevation/lada/util/data/LadaPostgisDialect.java @ 673:e6564d5fdc7a

Use Postgis dialect to talk to the database.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 22 May 2015 15:12:54 +0200
parents
children 3118fbbe6292
rev   line source
673
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 package de.intevation.lada.util.data;
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 import java.sql.Types;
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 import org.hibernate.spatial.dialect.postgis.PostgisDialect;
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 public class LadaPostgisDialect extends PostgisDialect {
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 public LadaPostgisDialect() {
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 super();
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 this.registerColumnType(Types.ARRAY, "integer[]");
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 }
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)