Spring Data Couchbase

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

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

public interface FieldNamingStrategy

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

Since:
1.1
Author:
Michael Nitschinger, Oliver Gierke
See Also:
FallbackFieldNamingStrategy, CamelCaseAbbreviatingFieldNamingStrategy, SnakeCaseFieldNamingStrategy

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

Method Detail

getFieldName

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

Parameters:
property - must not be null or empty.
Returns:
the field name to be used.

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.