Spring Data MongoDB - Core

org.springframework.data.mongodb.core.mapping
Class CamelCaseAbbreviatingFieldNamingStrategy

java.lang.Object
  extended by 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

Constructor Summary
CamelCaseAbbreviatingFieldNamingStrategy()
           
 
Method Summary
 String getFieldName(MongoPersistentProperty property)
          Returns the field name to be used for the given MongoPersistentProperty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelCaseAbbreviatingFieldNamingStrategy

public CamelCaseAbbreviatingFieldNamingStrategy()
Method Detail

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:

Spring Data MongoDB - Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.