|
|
|
|
@ -71,8 +71,6 @@ import com.mongodb.DBObject;
@@ -71,8 +71,6 @@ import com.mongodb.DBObject;
|
|
|
|
|
*/ |
|
|
|
|
public class MongoQueryCreatorUnitTests { |
|
|
|
|
|
|
|
|
|
Method findByFirstname, findByFirstnameAndFriend, findByFirstnameNotNull; |
|
|
|
|
|
|
|
|
|
MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> context; |
|
|
|
|
MongoConverter converter; |
|
|
|
|
|
|
|
|
|
@ -472,7 +470,7 @@ public class MongoQueryCreatorUnitTests {
@@ -472,7 +470,7 @@ public class MongoQueryCreatorUnitTests {
|
|
|
|
|
* @see DATAMONGO-1139 |
|
|
|
|
*/ |
|
|
|
|
@Test |
|
|
|
|
public void createsNonShericalNearForDistanceWithDefaultMetric() { |
|
|
|
|
public void createsNonSphericalNearForDistanceWithDefaultMetric() { |
|
|
|
|
|
|
|
|
|
Point point = new Point(1.0, 1.0); |
|
|
|
|
Distance distance = new Distance(1.0); |
|
|
|
|
@ -725,11 +723,14 @@ public class MongoQueryCreatorUnitTests {
@@ -725,11 +723,14 @@ public class MongoQueryCreatorUnitTests {
|
|
|
|
|
static class Address { |
|
|
|
|
|
|
|
|
|
String street; |
|
|
|
|
|
|
|
|
|
Point geo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static class Address2dSphere { |
|
|
|
|
|
|
|
|
|
String street; |
|
|
|
|
|
|
|
|
|
@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE) Point geo; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|