Spring Data Document

org.springframework.data.mongodb.core.mapping
Annotation Type DBRef


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface DBRef

An annotation that indicates the annotated field is to be stored using a com.mongodb.DBRef

Author:
Jon Brisbin <[email protected]>

Optional Element Summary
 String collection
           
 String db
           
 String id
           
 

collection

public abstract String collection
Default:
""

id

public abstract String id
Default:
""

db

public abstract String db
Default:
""

Spring Data Document

Copyright © 2012. All Rights Reserved.