Class CamelCaseSplittingFieldNamingStrategy

java.lang.Object
org.springframework.data.mapping.model.CamelCaseSplittingFieldNamingStrategy
All Implemented Interfaces:
FieldNamingStrategy
Direct Known Subclasses:
CamelCaseAbbreviatingFieldNamingStrategy, SnakeCaseFieldNamingStrategy

public class CamelCaseSplittingFieldNamingStrategy extends Object implements FieldNamingStrategy
Configurable FieldNamingStrategy that splits up camel-case property names and reconcatenates them using a configured delimiter. Individual parts of the name can be manipulated using preparePart(String).
Since:
1.9
Author:
Oliver Gierke
  • Constructor Details

  • Method Details

    • getFieldName

      public String getFieldName(PersistentProperty<?> property)
      Description copied from interface: FieldNamingStrategy
      Returns the field name to be used for the given PersistentProperty.
      Specified by:
      getFieldName in interface FieldNamingStrategy
      Parameters:
      property - must not be null or empty;
      Returns:
    • preparePart

      protected String preparePart(String part)
      Callback to prepare the uncapitalized part obtained from the split up of the camel case source. Default implementation returns the part as is.
      Parameters:
      part -
      Returns: