public class DefaultNamingStrategy extends Object implements NamingStrategy
splitthe Java name according to the Java convention, and then
jointhe resulting tokens according to the Cassandra convention. For example, a possible implementation might:
|Constructor and Description|
Builds a new instance.
|Modifier and Type||Method and Description|
Infers a Cassandra column/field name from a Java property name.
public DefaultNamingStrategy(NamingConvention javaConvention, NamingConvention cassandraConvention)
javaConvention- the naming convention that will be used to tokenize the Java property names.
cassandraConvention- the naming convention that will be used to build the Cassandra names from the Java tokens.
javaPropertyName- the name of the Java property. Depending on the
property access strategy, this might the name of the Java field, or be inferred from a getter/setter based on the usual Java beans conventions.
Copyright © 2012–2017. All rights reserved.