@Override
public SqlStatementCustomizer createForMethod(final Annotation annotation, Class sqlObjectType, Method method) {
return new SqlStatementCustomizer() {
@Override
public void apply(SQLStatement s) throws SQLException {
Query q = (Query) s;
Class<? extends TranslatingStrategyAware> translater = ((MapResultForSnakeCaseAsBean) annotation).translaterClass();
q.registerMapper(new TranslationAwareBeanMapperFactory(translater));
}
};
}