diff --git a/src/main/java/org/springframework/data/couchbase/core/ReactiveCouchbaseTemplate.java b/src/main/java/org/springframework/data/couchbase/core/ReactiveCouchbaseTemplate.java index 260bbd445..a120b5280 100644 --- a/src/main/java/org/springframework/data/couchbase/core/ReactiveCouchbaseTemplate.java +++ b/src/main/java/org/springframework/data/couchbase/core/ReactiveCouchbaseTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors + * Copyright 2012-2022 the original author or authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -165,7 +165,7 @@ public ReactiveTemplateSupport support() { * * @param ex the exception to translate */ - RuntimeException potentiallyConvertRuntimeException(final RuntimeException ex) { + protected RuntimeException potentiallyConvertRuntimeException(final RuntimeException ex) { RuntimeException resolved = exceptionTranslator.translateExceptionIfPossible(ex); return resolved == null ? ex : resolved; } diff --git a/src/main/java/org/springframework/data/couchbase/repository/support/CouchbaseRepositoryBase.java b/src/main/java/org/springframework/data/couchbase/repository/support/CouchbaseRepositoryBase.java index 992c4d0d0..dda26c076 100644 --- a/src/main/java/org/springframework/data/couchbase/repository/support/CouchbaseRepositoryBase.java +++ b/src/main/java/org/springframework/data/couchbase/repository/support/CouchbaseRepositoryBase.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 the original author or authors. + * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,7 +68,7 @@ String getId(S entity) { * 1. repository.withCollection() 2. Annotation on the method */ - String getScope() { + protected String getScope() { String fromAnnotation = OptionsBuilder.annotationString(Scope.class, CollectionIdentifier.DEFAULT_SCOPE, new AnnotatedElement[] { getJavaType(), repositoryInterface }); String fromMetadata = crudMethodMetadata.getScope(); @@ -83,7 +83,7 @@ String getScope() { * This can be overriden in the operation method by
* 1. repository.withCollection() */ - String getCollection() { + protected String getCollection() { String fromAnnotation = OptionsBuilder.annotationString(Collection.class, CollectionIdentifier.DEFAULT_COLLECTION, new AnnotatedElement[] { getJavaType(), repositoryInterface }); String fromMetadata = crudMethodMetadata.getCollection();