Spring Data MongoDB - Core

org.springframework.data.mongodb.core.mapping
Interface FieldNamingStrategy

All Known Implementing Classes:
CamelCaseAbbreviatingFieldNamingStrategy, CamelCaseSplittingFieldNamingStrategy, PropertyNameFieldNamingStrategy, SnakeCaseFieldNamingStrategy

public interface FieldNamingStrategy

SPI interface to determine how to name document fields in cases the field name is not manually defined.

Since:
1.3
Author:
Oliver Gierke
See Also:
DocumentField, PropertyNameFieldNamingStrategy, CamelCaseAbbreviatingFieldNamingStrategy, SnakeCaseFieldNamingStrategy

Method Summary
 String getFieldName(MongoPersistentProperty property)
          Returns the field name to be used for the given MongoPersistentProperty.
 

Method Detail

getFieldName

String getFieldName(MongoPersistentProperty property)
Returns the field name to be used for the given MongoPersistentProperty.

Parameters:
property - must not be null or empty;
Returns:

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.