You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using spring-data-couchbase 5.0.5 with spring boot 3.0.6.
When attempting to execute a service method marked @transactional which uses a CouchbaseRepository.delete call, the transaction fails with the error:
"cas must be supplied for tx remove".
I think I tracked this down to the SimpleCouchbaseRepository class's delete() implementation not supplying the .withCas() method.
To work around this I've implemented my own custom repository extension with a void deleteTx(T entity) which does employ the .withCas() method.
Is there a better supported way to use repository delete methods in @transactional blocks?
The text was updated successfully, but these errors were encountered:
The template.deleteById(...).oneEntity(entity) works.
I'll fix delete() and deleteAll() in SimpleCouchbaseRepository, it will be in the 5.0.6 release on May 12. SimpleReactiveCouchbaseRepository already has the correct implementations.
Is there a better supported way to use repository delete methods in @transactional blocks?
I'm using spring-data-couchbase 5.0.5 with spring boot 3.0.6.
When attempting to execute a service method marked @transactional which uses a CouchbaseRepository.delete call, the transaction fails with the error:
"cas must be supplied for tx remove".
I think I tracked this down to the SimpleCouchbaseRepository class's delete() implementation not supplying the .withCas() method.
To work around this I've implemented my own custom repository extension with a void deleteTx(T entity) which does employ the .withCas() method.
Is there a better supported way to use repository delete methods in @transactional blocks?
The text was updated successfully, but these errors were encountered: