org.springframework.data.mongodb.core.mapping
Class CamelCaseAbbreviatingFieldNamingStrategy
java.lang.Object
org.springframework.data.mongodb.core.mapping.CamelCaseAbbreviatingFieldNamingStrategy
- All Implemented Interfaces:
- FieldNamingStrategy
public class CamelCaseAbbreviatingFieldNamingStrategy
- extends Object
- implements FieldNamingStrategy
FieldNamingStrategy that abbreviates field names by using the very first letter of the camel case parts of
the MongoPersistentProperty's name.
- Since:
- 1.3
- Author:
- Oliver Gierke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelCaseAbbreviatingFieldNamingStrategy
public CamelCaseAbbreviatingFieldNamingStrategy()
getFieldName
public String getFieldName(MongoPersistentProperty property)
- Description copied from interface:
FieldNamingStrategy
- Returns the field name to be used for the given
MongoPersistentProperty.
- Specified by:
getFieldName in interface FieldNamingStrategy
- Parameters:
property - must not be null or empty;
- Returns:
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.