DATACOUCH-958 - Restore auditorAwareRef and dateTimeProviderRef to empty. (#1050)
Restore auditorAwareRef and dateTimeProviderRef to empty. To us them, they will need to be specified in @EnableCouchbaseAuditing( auditorAwareRef="auditorAwareRef", dateTimeProviderRef="dateTimeProviderRef") Co-authored-by: mikereiche <michael.reiche@couchbase.com>
This commit is contained in:
@@ -44,7 +44,7 @@ public @interface EnableCouchbaseAuditing {
|
||||
/**
|
||||
* Configures the {@link AuditorAware} bean to be used to lookup the current principal.
|
||||
*/
|
||||
String auditorAwareRef() default "auditorAwareRef";
|
||||
String auditorAwareRef() default "";
|
||||
|
||||
/**
|
||||
* Configures whether the creation and modification dates are set. Defaults to {@literal true}.
|
||||
@@ -60,5 +60,5 @@ public @interface EnableCouchbaseAuditing {
|
||||
* Configures a {@link DateTimeProvider} bean name that allows customizing the {@link org.joda.time.DateTime} to be
|
||||
* used for setting creation and modification dates.
|
||||
*/
|
||||
String dateTimeProviderRef() default "dateTimeProviderRef";
|
||||
String dateTimeProviderRef() default "";
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ import com.couchbase.client.java.json.JacksonTransformers;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableCouchbaseRepositories
|
||||
@EnableCouchbaseAuditing // this activates auditing
|
||||
@EnableCouchbaseAuditing(auditorAwareRef="auditorAwareRef", dateTimeProviderRef="dateTimeProviderRef") // this activates auditing
|
||||
public class Config extends AbstractCouchbaseConfiguration {
|
||||
String bucketname = "travel-sample";
|
||||
String username = "Administrator";
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package org.springframework.data.couchbase.domain;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.couchbase.repository.auditing.EnableCouchbaseAuditing;
|
||||
import org.springframework.data.couchbase.repository.config.EnableCouchbaseRepositories;
|
||||
|
||||
/**
|
||||
@@ -28,7 +27,6 @@ import org.springframework.data.couchbase.repository.config.EnableCouchbaseRepos
|
||||
*/
|
||||
@Configuration
|
||||
@EnableCouchbaseRepositories
|
||||
@EnableCouchbaseAuditing // this activates auditing
|
||||
public class ConfigScoped extends Config {
|
||||
|
||||
static String scopeName = null;
|
||||
|
||||
Reference in New Issue
Block a user