Spring Data Document

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


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

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

Author:
Jon Brisbin

Optional Element Summary
 String db
          The database the referred entity resides in.
 

db

public abstract String db
The database the referred entity resides in.

Returns:
Default:
""

Spring Data Document

Copyright © 2012. All Rights Reserved.