@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface ReadPreference
When given on the property-level, this setting will only take effect when the property represents an association. If given for non-association properties, the setting on the property-level will be ignored and the setting from the entity will be applied.
http://docs.mongodb.org/manual/core/read-preference/| Modifier and Type | Required Element and Description |
|---|---|
ReadPreferenceType |
value
Specifies the read concern setting to be applied when performing read operations for the annotated entity or
property.
|
public abstract ReadPreferenceType value
Copyright © 2010-2014 Hibernate. All Rights Reserved.