Spring Data Document

org.springframework.data.mongodb.core.index
Annotation Type CompoundIndex


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface CompoundIndex

Mark a class to use compound indexes.

Author:
Jon Brisbin <[email protected]>

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

Element Detail

def

public abstract String def

direction

public abstract IndexDirection direction
Default:
org.springframework.data.mongodb.core.index.IndexDirection.ASCENDING

unique

public abstract boolean unique
Default:
false

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.