Created
April 15, 2018 19:22
-
-
Save lankydan/a860b854896e7553132589e86f831c06 to your computer and use it in GitHub Desktop.
Datastax driver - mapping manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public MappingManager mappingManager(Session session) { | |
final PropertyMapper propertyMapper = | |
new DefaultPropertyMapper() | |
.setNamingStrategy(new DefaultNamingStrategy(LOWER_CAMEL_CASE, LOWER_SNAKE_CASE)); | |
final MappingConfiguration configuration = | |
MappingConfiguration.builder().withPropertyMapper(propertyMapper).build(); | |
return new MappingManager(session, configuration); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment