|
70 | 70 | * @author Simon Baslé
|
71 | 71 | * @author Stephane Nicoll
|
72 | 72 | * @author Subhashni Balakrishnan
|
| 73 | + * @author Jorge Rodriguez Martin |
73 | 74 | */
|
74 | 75 | @Configuration
|
75 | 76 | public abstract class AbstractCouchbaseConfiguration {
|
@@ -158,15 +159,27 @@ protected void configureEnvironment(final ClusterEnvironment.Builder builder) {
|
158 | 159 | }
|
159 | 160 |
|
160 | 161 | @Bean(name = BeanNames.COUCHBASE_TEMPLATE)
|
| 162 | + public CouchbaseTemplate couchbaseTemplate(CouchbaseClientFactory couchbaseClientFactory, |
| 163 | + MappingCouchbaseConverter mappingCouchbaseConverter, TranslationService couchbaseTranslationService) { |
| 164 | + return new CouchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter, couchbaseTranslationService); |
| 165 | + } |
| 166 | + |
161 | 167 | public CouchbaseTemplate couchbaseTemplate(CouchbaseClientFactory couchbaseClientFactory,
|
162 | 168 | MappingCouchbaseConverter mappingCouchbaseConverter) {
|
163 |
| - return new CouchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter); |
| 169 | + return couchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter, new JacksonTranslationService()); |
164 | 170 | }
|
165 | 171 |
|
166 | 172 | @Bean(name = BeanNames.REACTIVE_COUCHBASE_TEMPLATE)
|
| 173 | + public ReactiveCouchbaseTemplate reactiveCouchbaseTemplate(CouchbaseClientFactory couchbaseClientFactory, |
| 174 | + MappingCouchbaseConverter mappingCouchbaseConverter, TranslationService couchbaseTranslationService) { |
| 175 | + return new ReactiveCouchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter, |
| 176 | + couchbaseTranslationService); |
| 177 | + } |
| 178 | + |
167 | 179 | public ReactiveCouchbaseTemplate reactiveCouchbaseTemplate(CouchbaseClientFactory couchbaseClientFactory,
|
168 | 180 | MappingCouchbaseConverter mappingCouchbaseConverter) {
|
169 |
| - return new ReactiveCouchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter); |
| 181 | + return reactiveCouchbaseTemplate(couchbaseClientFactory, mappingCouchbaseConverter, |
| 182 | + new JacksonTranslationService()); |
170 | 183 | }
|
171 | 184 |
|
172 | 185 | @Bean(name = BeanNames.COUCHBASE_OPERATIONS_MAPPING)
|
|
0 commit comments