Spring Data Document

org.springframework.data.mongodb.core.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 <[email protected]>

Optional Element Summary
 String collection
           
 IndexDirection direction
           
 boolean dropDups
           
 String name
           
 boolean sparse
           
 boolean unique
           
 

unique

public abstract boolean unique
Default:
false

direction

public abstract IndexDirection direction
Default:
org.springframework.data.mongodb.core.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:
""

Spring Data Document

Copyright © 2012. All Rights Reserved.