Now with @Spatials working on class level with test case :
@Spatials({ @Spatial(name="home", spatialMode = SpatialMode.GRID), @Spatial(name="work", spatialMode = SpatialMode.GRID) }) @Entity @Indexed public class UserEx { @Id Integer id; @Latitude(spatialName="home") Double homeLatitude; @Longitude(spatialName="home") Double homeLongitude; @Latitude(spatialName="work") Double workLatitude; @Longitude(spatialName="work") Double workLongitude;
Now with @Spatials working on class level with test case :