mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
combined type registration since querydsl-spatial depends on geolatte and JTS
This commit is contained in:
parent
d6a17a7599
commit
245e437fd7
@ -183,14 +183,6 @@ public class DefaultConfiguration implements Configuration {
|
||||
} catch (Exception e) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
try {
|
||||
// register additional mappings, if querydsl-spatial and JTS is on the classpath
|
||||
Class.forName("com.mysema.query.spatial.jts.JTSGeometryExpression");
|
||||
SpatialSupport.addJTSSupport(module);
|
||||
} catch (Exception e) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
defaultSerializerConfig = new SimpleSerializerConfig(entityAccessors, listAccessors,
|
||||
mapAccessors, createDefaultVariable, "");
|
||||
|
||||
@ -66,9 +66,6 @@ public final class SpatialSupport {
|
||||
public static void addSupport(AbstractModule module) {
|
||||
registerTypes(module.get(TypeMappings.class));
|
||||
addImports(module,"com.mysema.query.spatial.path");
|
||||
}
|
||||
|
||||
public static void addJTSSupport(AbstractModule module) {
|
||||
registerJTSTypes(module.get(TypeMappings.class));
|
||||
addImports(module,"com.mysema.query.spatial.jts.path");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user