Spring Data Document

org.springframework.data.document.mongodb.mapping
Annotation Type FieldName


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

Annotation to allow defining the name of the field a property should use in a Mongo document. This will cause the property annotated being persisted to a field with the configured name as wells as being read from it.

Author:
Oliver Gierke

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value

Spring Data Document

Copyright © 2011. All Rights Reserved.