-
Mar 23rd, 2012, 03:17 AM
#1
MongoDB, is possible set GeospatialIndex in model?
In Spring Data MongoDB is possible set GeospatialIndex in model?
example:
@Document
public class User implements Base {
@Id
private String id;
private String firstname;
private String lastname;
@GeospatialIndex ???????????
private double[] locationPoint;
}
tnx!
-
Mar 23rd, 2012, 04:32 AM
#2
-
Mar 23rd, 2012, 05:40 AM
#3
hello,
sorry I said bad
I would like to know if I can define an index with Geospatial @annotation in the model
as is done with the indexes on the individual field (see annotation @index)
Thank you
es:
@Index
private String name;
@GeospatialIndex (exist this?)
private double[] location
-
Mar 23rd, 2012, 08:19 AM
#4
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules