@Override public void registerClassToSqlMappings(Map<Class<?>, Integer> mappings) { super.registerClassToSqlMappings(mappings); // jdbc metadata for geom columns reports DATA_TYPE=1111=Types.OTHER mappings.put(Geometry.class, Types.OTHER); mappings.put(UUID.class, Types.OTHER); }
@Override public void registerClassToSqlMappings(Map<Class<?>, Integer> mappings) { super.registerClassToSqlMappings(mappings); mappings.put(Geometries.POINT.getBinding(), Geometries.POINT.getSQLType()); mappings.put(Geometries.LINESTRING.getBinding(), Geometries.LINESTRING.getSQLType()); mappings.put(Geometries.POLYGON.getBinding(), Geometries.POLYGON.getSQLType()); mappings.put(Geometries.MULTIPOINT.getBinding(), Geometries.MULTIPOINT.getSQLType()); mappings.put(Geometries.MULTILINESTRING.getBinding(), Geometries.MULTILINESTRING.getSQLType()); mappings.put(Geometries.MULTIPOLYGON.getBinding(), Geometries.MULTIPOLYGON.getSQLType()); mappings.put(Geometries.GEOMETRY.getBinding(), Geometries.GEOMETRY.getSQLType()); mappings.put( Geometries.GEOMETRYCOLLECTION.getBinding(), Geometries.GEOMETRYCOLLECTION.getSQLType()); // override some internal defaults mappings.put(Long.class, Types.INTEGER); mappings.put(Double.class, Types.REAL); }