Commit Graph

888 Commits

Author SHA1 Message Date
Mark Paluch
98dd3c7632 Prepare next development iteration.
See #1126
2021-05-14 12:05:18 +02:00
Mark Paluch
d210891b7c Release version 4.1.9 (2020.0.9).
See #1126
2021-05-14 11:52:25 +02:00
Mark Paluch
05679c428a Prepare 4.1.9 (2020.0.9).
See #1126
2021-05-14 11:51:55 +02:00
Mark Paluch
6c78f725cb Updated changelog.
See #1126
2021-05-14 11:51:50 +02:00
Greg L. Turnquist
de6432d979 Authenticate with artifactory.
See #1117.
2021-04-20 10:31:50 -05:00
Mark Paluch
7e824bae95 Updated changelog.
See #1117
2021-04-14 14:40:04 +02:00
Mark Paluch
ab9bab20a9 After release cleanups.
See #1118
2021-04-14 11:42:10 +02:00
Mark Paluch
292f2da5d8 Prepare next development iteration.
See #1118
2021-04-14 11:42:06 +02:00
Mark Paluch
d82f1e7c53 Release version 4.1.8 (2020.0.8).
See #1118
2021-04-14 11:33:27 +02:00
Mark Paluch
16c3e70803 Prepare 4.1.8 (2020.0.8).
See #1118
2021-04-14 11:32:49 +02:00
Mark Paluch
2b0946bca0 Updated changelog.
See #1118
2021-04-14 11:32:45 +02:00
Mark Paluch
c4762077cf Updated changelog.
See #1100
2021-04-14 11:17:43 +02:00
Mark Paluch
ede763bcac After release cleanups.
See #1101
2021-03-31 18:29:42 +02:00
Mark Paluch
e73e678b6c Prepare next development iteration.
See #1101
2021-03-31 18:29:39 +02:00
Mark Paluch
8deb6aede7 Release version 4.1.7 (2020.0.7).
See #1101
2021-03-31 18:19:53 +02:00
Mark Paluch
1f92343f89 Prepare 4.1.7 (2020.0.7).
See #1101
2021-03-31 18:19:21 +02:00
Mark Paluch
535d2e49ee Updated changelog.
See #1101
2021-03-31 18:19:17 +02:00
Mark Paluch
fe989f507e Updated changelog.
See #1086
2021-03-31 17:26:09 +02:00
Michael Reiche
f1140ef61b Revert Couchbase SDK to 3.0.1 on 4.1.x.
Closes #1103.
Original pull request: #1107.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-03-30 17:22:47 -04:00
Mark Paluch
6cf172600e Updated changelog.
See #1099
2021-03-17 11:31:33 +01:00
Mark Paluch
97536b0900 After release cleanups.
See #1091
2021-03-17 11:02:16 +01:00
Mark Paluch
aabeeae53e Prepare next development iteration.
See #1091
2021-03-17 11:02:14 +01:00
Mark Paluch
9191006b62 Release version 4.1.6 (2020.0.6).
See #1091
2021-03-17 10:54:13 +01:00
Mark Paluch
adc45a22da Prepare 4.1.6 (2020.0.6).
See #1091
2021-03-17 10:53:44 +01:00
Mark Paluch
095ff39506 Updated changelog.
See #1091
2021-03-17 10:53:42 +01:00
Mark Paluch
d5e3833664 Updated changelog.
See #1084
2021-03-17 10:35:16 +01:00
mikereiche
b2c1f7a72f Upgrade Couchbase Java SDK to 3.1.3.
Closes #1079.
Original pull request #1098.
2021-03-15 15:52:55 -04:00
Michael Reiche
fdbb839119 Revert changes to public apis that were altered instead of just deprecated. (#1093)
Closes #1092.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-03-15 15:41:35 -04:00
Christoph Strobl
dd047e29cc Updated changelog.
See #1090
2021-02-18 11:37:50 +01:00
Christoph Strobl
7d7f194f3f After release cleanups.
See #1085
2021-02-18 11:12:46 +01:00
Christoph Strobl
d6f83b42b5 Prepare next development iteration.
See #1085
2021-02-18 11:12:45 +01:00
Christoph Strobl
d1291f3b6b Release version 4.1.5 (2020.0.5).
See #1085
2021-02-18 10:59:16 +01:00
Christoph Strobl
bd4bdcfacc Prepare 4.1.5 (2020.0.5).
See #1085
2021-02-18 10:58:50 +01:00
Christoph Strobl
37f6048e15 Updated changelog.
See #1085
2021-02-18 10:58:49 +01:00
Michael Reiche
029f30aed9 Revert "DATACOUCH-550 - Refactored the usage of CouchbasePersistentEntityIndexCreator. (#298)" (#1088)
This reverts commit 883c931cf4.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-02-17 09:53:29 -08:00
Christoph Strobl
eab08442f8 Updated changelog.
See #1044
2021-02-17 14:20:37 +01:00
Christoph Strobl
0fd3b492bf After release cleanups.
See #1043
2021-02-17 13:41:55 +01:00
Christoph Strobl
2d9f0b9474 Prepare next development iteration.
See #1043
2021-02-17 13:41:54 +01:00
Christoph Strobl
07d9fe21ae Release version 4.1.4 (2020.0.4).
See #1043
2021-02-17 12:00:24 +01:00
Christoph Strobl
a85952c57d Prepare 4.1.4 (2020.0.4).
See #1043
2021-02-17 11:59:37 +01:00
Christoph Strobl
290bccb08f Updated changelog.
See #1043
2021-02-17 11:59:36 +01:00
Christoph Strobl
8875c9f539 Updated changelog.
See #976
2021-02-17 11:34:28 +01:00
Christoph Strobl
f11f9e2d9a Updated changelog.
See #975
2021-02-17 10:58:28 +01:00
Michael Reiche
8fa7cb1149 DATACOUCH-1066 - Make QueryCriteria key a N1qlExpression. (#1082)
This is a merge of mmonti's changeset into master. The changeset was made
on top of 4.1.x instead of master so it has a little catching up to do.

Original pull request #1082

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-02-16 18:17:56 -08:00
Jorge Rodríguez Martín
c2741d8045 DATACOUCH-652 - Inject translation service bean in CouchbaseTemplateSupport. (#294) 2021-02-16 15:11:36 -08:00
Michael Reiche
c34cad0562 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>
2021-02-16 15:09:28 -08:00
Aaron Whiteside
883c931cf4 DATACOUCH-550 - Refactored the usage of CouchbasePersistentEntityIndexCreator. (#298)
pom.xml
- updated CouchbaseMock dependency to the official release on maven central, which now includes the required commit.

CouchbaseTemplate.java
- remove creation of CouchbasePersistentEntityIndexCreator
- there can only be a single CouchbaseMappingContext and CouchbasePersistentEntityIndexCreator, not sure why there was code dealing with multiples of each, and there was no corresponding tests for these assumptions.
- no longer does the job of a @Configuation class by gluing beans together with their dependencies.

CouchbaseMappingContext.java
- removed references to auto index creation, that functionality should be a completely separate concern.

CouchbasePersistentEntityIndexCreator.java
- as well as implementing ApplicationListener, it now also implements InitializingBean
- when afterPropertiesSet() is called it uses CouchbaseMappingContext#getPersistentEntities to retrieve the list of entity candidates for index creation. This will handle the creation of indices for entities known at @Configuration time.
- for entities not in the initialEntitySet of the MappingContext, the ApplicationListener will handle those entities at runtime.
- this is needed because the AbstractMappingContext will emit events when it is initialized via InitializingBean, and any beans that depend on MappingContext and also implement ApplicationListener expecting to receive those events won't.
 - in our case because Spring will have fully initialised the CouchbaseMappingContext instance before passing it to the CouchbasePersistentEntityIndexCreator instance we won't get those events.
- added a boolean flag to indicate if automatic index creation is to be enabled or now, passed in by the factory method that creates this bean.
- minor logging cleanup, use property placeholders where appropriate

AbstractCouchbaseConfiguration.java
- added a new factory method for the CouchbasePersistentEntityIndexCreator bean.
- CouchbaseMappingContext no longer has anything to do with index creation, other than supplying a candidate list of entities that may need indices.

Prompted by:
https://github.com/spring-projects/spring-boot/issues/24525
and the discussion on https://github.com/spring-projects/spring-data-couchbase/pull/295

Co-authored-by: Aaron Whiteside <awhiteside@yapstone.com>
2021-02-16 15:06:11 -08:00
Michael Reiche
e9a99cf5e4 DATACOUCH-1048 - Update copyright in two new classes. (#1049)
Update copyright in two new classes.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-02-16 15:03:33 -08:00
Michael Reiche
37113c67ad DATACOUCH-588 - Part 2 of 2 refactoring for paging and projection. (#1080)
* DATACOUCH-588 - Part 2 of framework changes. Add support for projection and distinct. (#1040)

Support for projection is only for properties of the top-level entity. For instance, in UserSubmission, only the properties below can be specified in the projection. Projection support does not provide means of specifying something like address.street - you can only project (or not project) the whole address property. However, the address type in your resultType could have a subset of the properties in Address.

If the corresponding submissions in the resultType contained only the userId property

public class UserSubmission extends ComparableEntity {
	private String id;
	private String username;
	private List<String> roles;
	private Address address;
	private List<Submission> submissions;

Support for Distinct - I have appropriated the MongoDB model for Distinct.  It defines a separate DistinctOperationSupport class (within ExecutableFindByQuerySupport) which supports the distinct( distinctFields ) api and execution. The DistinctOperationSupport class has only a distinctFields member, and a 'delegate' member, which is an ExecutableFindByQuerySupport object. TBH, I don't see the advantage over simply adding a distinctFields member to ExecutableFindByQuerySupport

Amend #1 - changes as discussed in Pull Request
         - clean up test entity types

Amend #2
- Eliminate DistinctOperationSupport class. In MongoDB, only distinct on a single field is supported, so the returnType from distinct was very different from the returnType of other query operations (all(), one() etc. (but so is count(), and it doesn't need it's own class)). In Couchbase, distinct on any fields in the entity is allowed - so the returned type could be the domainType or resultType. And as(resultType) still allows any resultType to be specified. This makes it unnecessary to have combinations of interfaces such as DistinctWithProjection and DistinctWithQuery.

- Clean up the interfaces in ExecutableFindByQuery. There are two types of interfaces (a) the TerminatingFindByQuery which has the one(), oneValue() first(), firstValue(), all(), count(), exists() and stream(); and (b) the option interfaces (FindByQueryWithConsistency etc), which are essentially with-er interfaces. The changes are:
1) make all the with-er interfaces base interfaces instead of chaining them together. (I don't know why there isn't simply one interface with all the with-er methods).
2) make the ExecutableFindByQuery interface extend the Terminating interface and all the with-er interfaces.

Amend #3
- Add execution support for collections

Amend #4
- Add tests for collections. This includes a new CollectionAwareIntegrationTests class which extends a new JavaIntegratationTests class which extends the existing ClusterAwareIntegrationTests.
- Fixed up several issues collections issues that were uncovered by the tests.
- Did further cleanup of OperationSupport interfaces.

Amend #5
- Revert changes to interfaces in *Operation
- Sorted interfaces in same order for consistency (because of the chaining of interfaces, fluent methods must be called in order).

Co-authored-by: mikereiche <michael.reiche@couchbase.com>

* DATACOUCH-588 - after cherry-pick, remove reference to 4.2 method deleteAllById().

Original pull request #1040
2021-02-16 15:01:21 -08:00
Michael Reiche
570792d353 DATACOUCH-588 - Refactoring part 1 of n. (#278)
* DATACOUCH-588 - Implement pageable and realign repo query

This implements pageable for non-reactive queries and
realigns reactive queries with other spring-data projects
to facilitate the implementaion of pageable (done) and other
types of queries such as projection and distinct (not yet
done)

* DATACOUCH-588 - Implement pageable and realign repo query

This implements pageable for non-reactive queries and
realigns reactive queries with other spring-data projects
to facilitate the implementaion of pageable (done) and other
types of queries such as projection and distinct (not yet
done)

* DATACOUCH-588 - Refactoring part 1 of n.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2021-02-16 14:21:40 -08:00