@Override public void registerSqlTypeToClassMappings(Map<Integer, Class<?>> mappings) { super.registerSqlTypeToClassMappings(mappings); // clear BLOB, we handle them custom mappings.remove(Types.BLOB); }
/** * The sql type to java type mappings that the datastore uses when reading and writing objects * to and from the database. * * <p>These mappings are derived from {@link * SQLDialect#registerSqlTypeToClassMappings(java.util.Map)} * * @return The mappings, never <code>null</code>. */ public Map<Integer, Class<?>> getSqlTypeToClassMappings() { if (sqlTypeToClassMappings == null) { sqlTypeToClassMappings = new HashMap<Integer, Class<?>>(); dialect.registerSqlTypeToClassMappings(sqlTypeToClassMappings); } return sqlTypeToClassMappings; }
public void registerSqlTypeToClassMappings(Map<Integer, Class<?>> mappings) { super.registerSqlTypeToClassMappings(mappings); mappings.put(POINT, Point.class); mappings.put(LINESTRING, LineString.class); mappings.put(POLYGON, Polygon.class); mappings.put(MULTIPOINT, MultiPoint.class); mappings.put(MULTILINESTRING, MultiLineString.class); mappings.put(MULTIPOLYGON, MultiPolygon.class); mappings.put(GEOMETRY, Geometry.class); }
@Override public void registerSqlTypeToClassMappings(Map<Integer, Class<?>> mappings) { super.registerSqlTypeToClassMappings(mappings); mappings.put(GEOMETRY, Geometry.class); mappings.put(GEOMETRYCOLL, GeometryCollection.class); mappings.put(POINT, Point.class); mappings.put(MULTIPOINT, MultiPoint.class); mappings.put(LINESTRING, LineString.class); mappings.put(MULTILINESTRING, MultiLineString.class); mappings.put(POLY, Polygon.class); mappings.put(MULTIPOLY, Polygon.class); }
@Override public void registerSqlTypeToClassMappings(Map<Integer, Class<?>> mappings) { super.registerSqlTypeToClassMappings(mappings); //clear BLOB, we handle them custom mappings.remove(Types.BLOB); }
/** * The sql type to java type mappings that the datastore uses when reading * and writing objects to and from the database. * <p> * These mappings are derived from {@link SQLDialect#registerSqlTypeToClassMappings(java.util.Map)} * </p> * @return The mappings, never <code>null</code>. */ public Map<Integer, Class<?>> getSqlTypeToClassMappings() { if (sqlTypeToClassMappings == null) { sqlTypeToClassMappings = new HashMap<Integer, Class<?>>(); dialect.registerSqlTypeToClassMappings(sqlTypeToClassMappings); } return sqlTypeToClassMappings; }
/** * The sql type to java type mappings that the datastore uses when reading * and writing objects to and from the database. * <p> * These mappings are derived from {@link SQLDialect#registerSqlTypeToClassMappings(java.util.Map)} * </p> * @return The mappings, never <code>null</code>. */ public Map<Integer, Class<?>> getSqlTypeToClassMappings() { if (sqlTypeToClassMappings == null) { sqlTypeToClassMappings = new HashMap<Integer, Class<?>>(); dialect.registerSqlTypeToClassMappings(sqlTypeToClassMappings); } return sqlTypeToClassMappings; }
@Override public void registerSqlTypeToClassMappings(Map<Integer, Class<?>> mappings) { super.registerSqlTypeToClassMappings(mappings); mappings.put(GEOMETRY, Geometry.class); mappings.put(GEOMETRYCOLL, GeometryCollection.class); mappings.put(POINT, Point.class); mappings.put(MULTIPOINT, MultiPoint.class); mappings.put(LINESTRING, LineString.class); mappings.put(MULTILINESTRING, MultiLineString.class); mappings.put(POLY, Polygon.class); mappings.put(MULTIPOLY, Polygon.class); }