Skip to content

Tag: couchbase

Spring Data Couchbase @CreatedDate not working

I’m using Spring boot with spring data couchbase. I’ve added two fields for createdDate and lastModifiedDate with @CreatedDate and @LastModifiedDate annotations in Movie Document. lastModifiedDate works great but createdDate is always null. I’ve also added a configuration for @EnableCouchbaseAuditing: Movie Repository: application.yml for reference: Answer As stated in the documentation, in order to distinguish between a creation and an update,

Cannot inherit from final class error

What does this error mean .. It runs fine in Eclipse but not in intellij idea I get this error when I try to run couchbase using couchbase-client-1.1.6.jar from Intellij IDea. Answer if you’re using kotlin, add open to your class (extends RealmObject) declaration