org.springframework.data.document.mongodb.index
Annotation Type Indexed
@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Indexed
Mark a field to be indexed using MongoDB's indexing feature.
- Author:
- Jon Brisbin
unique
public abstract boolean unique
- Default:
- false
direction
public abstract IndexDirection direction
- Default:
- org.springframework.data.document.mongodb.index.IndexDirection.ASCENDING
sparse
public abstract boolean sparse
- Default:
- false
dropDups
public abstract boolean dropDups
- Default:
- false
name
public abstract String name
- Default:
- ""
collection
public abstract String collection
- Default:
- ""
Copyright © 2011. All Rights Reserved.