Commit Graph

710 Commits

Author SHA1 Message Date
Mark Paluch
fb656d20be Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #1748
2023-06-06 11:04:20 +02:00
Christoph Strobl
72f23082da Prepare 4.4.12 (2021.2.12).
See #1712
2023-05-12 10:17:45 +02:00
Andy Toone
c600f5854a ReactiveCouchbaseTemplate can overwrite PseudoArgs. (#1685)
* ReactiveCouchbaseTemplate can overwrite PseudoArgs under heavy concurrency.

Raised as issue #1684

* Added author
2023-04-25 10:37:52 -07:00
Greg L. Turnquist
ff9be2d5f6 Prepare 4.4.11 (2021.2.11).
See #1697
2023-04-14 09:19:20 -05:00
Michael Reiche
0b7ae94dd0 Use ApplicationContext classloader for MappingCouchbaseConverter. (#1704)
Closes #1691.
2023-03-30 12:03:18 -07:00
Christoph Strobl
6b0cd90591 Prepare 4.4.10 (2021.2.10).
See #1686
2023-03-20 13:42:32 +01:00
Mark Paluch
1ffbe6cae2 Prepare 4.4.9 (2021.2.9).
See #1666
2023-03-03 10:18:48 +01:00
Mark Paluch
8b8f0dd019 Prepare 4.4.8 (2021.2.8).
See #1646
2023-02-17 10:08:09 +01:00
Mark Paluch
1b92035b7b Prepare 4.4.7 (2021.2.7).
See #1614
2023-01-13 10:32:33 +01:00
Michael Reiche
f3f405db4c Refresh test entity class. (#1645)
Closes #1644.
2023-01-11 13:53:50 -08:00
Michael Reiche
b7d2c8fd03 Add missing test entity class. (#1643)
Closed #1642.
2023-01-11 13:53:46 -08:00
Michael Reiche
5b04d59571 Use getAndTouch only when annotation attribute touchOnRead=true. (#1641)
Closes #1634.
2023-01-11 13:53:42 -08:00
Michael Reiche
7800cf7a27 Take expiry from entity class annotation for getAndTouch. (#1640)
Closes #1634.
2023-01-10 16:56:37 -08:00
Michael Reiche
3cba5d9aad Use "= true" for TRUE() and "= false" for FALSE(). (#1633)
Closes #1627.
2023-01-03 15:44:55 -08:00
Mark Paluch
4134eb6fcc Extend license header copyright years to 2023.
See #1631
2023-01-02 09:52:10 +01:00
Mark Paluch
4cbed86b1c Prepare 4.4.6 (2021.2.6).
See #1593
2022-11-18 10:44:45 +01:00
Spring Builds
2bb2001934 Prepare 4.4.5 (2021.2.5).
See #1592
2022-10-13 13:21:38 +00:00
Spring Builds
d9a3f05f8a Prepare 4.4.4 (2021.2.4).
See #1561
2022-10-13 08:57:10 +00:00
Spring Builds
8dc8c558ed Prepare 4.4.3 (2021.2.3).
See #1510
2022-09-19 11:36:25 +00:00
Michael Reiche
d3f1095474 Fix arrayContaining n1ql generated. (#1548)
Closed #1545.
2022-08-26 16:24:28 -07:00
Michael Reiche
935dd1f808 Add support for ignoreCase in queries derived from method names.
Closes #984, #1481.
2022-08-26 16:23:19 -07:00
Rémi Bleuse
b0e24a73e8 fix transaction sample documentation (#1542)
* fix transaction sample
fixes #1524

* delete new line
2022-08-22 08:22:07 -07:00
Rémi Bleuse
a2a48caf79 Allow document ID to be other than String (#1534)
* fixes #1529

* add author
2022-08-08 10:05:29 -07:00
Michael Reiche
48742b145d Allow id to be type other than String. (#1533)
Closes #1529.
2022-08-05 10:30:35 -07:00
Christoph Strobl
f26805ed12 Prepare 4.4.2 (2021.2.2).
See #1479
2022-07-15 11:07:51 +02:00
Mark Paluch
e782b4c9f2 Prepare 4.4.1 (2021.2.1).
See #1437
2022-06-20 11:29:07 +02:00
Michael Reiche
31a9fe7e98 Move tests needing server to IntegrationTests.
Closes #1472.
2022-06-17 13:52:43 -07:00
Michael Reiche
b83986ef80 Serialize BigDecimal using toString() instead of toPlainString().
Closes #1468.
2022-06-17 11:21:15 -07:00
Michael Reiche
857a364ff0 Update ReactiveAirportRepository.java 2022-06-17 11:05:33 -07:00
Michael Reiche
797a454108 Fix 1441 in 4_4_x - scope and collection not considered in repo delete.
This is a more localized change than the one in main.

Closes #1464.
2022-06-17 11:05:33 -07:00
Michael Reiche
72886bb256 Back-out the breaking part of 1441 from 4_4_x.
n1ql.bucket will continue to be (collection != null ? collection : bucket)
so that queries that referenced n1ql.bucket after being used on collections
will still work.

Closes #1462.
2022-06-16 15:24:58 -07:00
Michael Reiche
f052aa4826 Add n1ql.scope and n1ql.collection spel expressions for @Query.
This adds n1ql.scope and n1ql.collection spel expressions for
@Query so that n1ql.bucket doesn't need to be overloaded with
the collection name. This will make the bucket name available
in n1q.bucket.

This is a breaking change as queries that used n1ql.bucket to
get the collection name (especially in the case of pre-scope-
and-collection @Queries that (a) referenced n1ql.bucket instead
of referencing other spel expressions that include the
bucket/collection name; and (b)  still worked after the
repository was moved from a bucket onto a collection by
virtue of n1ql.bucket having the value of the collection in
such instances.

Closes #1445.
2022-06-16 10:03:14 -07:00
Michael Reiche
b76ee48240 Add BigDecimal converter.
Add BigDecimal converter, add converter tests for BigDecimal and BigInteger.
Since BigDecimail is not support, it cannot be used in the CustomerConverter tests.
So instead use ChoiceFormat for CustomConverter tests.

Closes #1439.
2022-06-16 10:00:09 -07:00
Christoph Strobl
bf56b85f8a Prepare 4.4 GA (2021.2.0).
See #1397
2022-05-13 10:04:21 +02:00
Michael Reiche
8847544025 Only project id and cas if required. (#1404)
Closes #1402.
2022-05-09 13:34:42 -07:00
Michael Reiche
b1272bc49a Fix Collection Support for Cache for non-Collection Server. (#1418)
Also fix test setup index flakiness on older servers.

Closes #1417.
2022-05-09 13:34:19 -07:00
Michael Reiche
b4fac725d9 Only throw exception for id and cas not projected if needed. (#1395)
Closes #1394.
2022-05-09 13:20:42 -07:00
Michael Reiche
f6944a78fb Proper handling of metadata from CrudMethodMetadataPostProcessor. (#1393)
Retrieve the data before any reactive lambda.
When the method returns, in can immediately be removed from
the currentInvocation, and the previous data restored.

Closes #1392.
2022-05-09 13:19:15 -07:00
Michael Reiche
9fe8472b37 Check for _ID and _CAS as well as __id and __cas being projected from query and analytics. (#1390)
Closes #1389.
2022-05-09 13:18:53 -07:00
Michael Reiche
baf198c868 Fix javadoc from querydsl commit. (#1384)
Closes #1383.
2022-05-09 13:16:35 -07:00
Michael Reiche
4a42cba52e Support testing against Capella. (#1386)
Support testing against Capella. Also includes sample to
use Capella control-plane.

Closes #1385.
2022-05-09 13:12:51 -07:00
Michael Reiche
9347a5097a Quotes around bucket name in setup for collection tests. (#1416)
Closes #1415.
2022-04-19 18:30:15 -07:00
Christoph Strobl
112452622e Prepare 4.4 RC1 (2021.2.0).
See #1377
2022-04-19 11:10:15 +02:00
Michael Reiche
c288d053c9 Querydsl support. (#1330)
Closes #1288.
2022-03-31 08:04:17 -07:00
Greg L. Turnquist
a9fa0dc83e Prepare 4.4 M4 (2021.2.0).
See #1351
2022-03-21 10:07:09 -05:00
Michael Reiche
fe59e0c945 Fix cache to use collections part 2. (#1373)
Closes #1369.
2022-03-15 20:52:34 -07:00
Michael Reiche
13d8b6dbc7 Fix cache.clear() to use collection. (#1371)
Closes #1369.

Co-authored-by: Michael Reiche <michael.reiche@couchbase.com>
2022-03-15 20:13:07 -07:00
Michael Reiche
3ec3a3080a Support derived queries on repositories defined with an abstract entity class. (#1366)
Motivation:
Currently an abstract entity class specified in the repository definition can
be used for the predicate typeKey = typeAlias(of abstract entity class) in
queries. Since documents are stored with typeKey = typeAlias(of concrete class)
those queries will never match any documents.  To allow this to work,
all of the abstract entity class an all concrete subclasses must use the
same typeAlias.

Once those documents are found, regardless of their concrete class,
they will all have the same typeKey = typeAlias, instead of having the
typeAlias specific to the concrete class. Additional information in
the stored document is needed to identify the concrete class (subtype
in the example test case), as well as a TypeMapper to interpret that
 information.

Changes:
This allows a common TypeAlias to be used for the purpose of the predicate
typeKey = typeAlias, and the determination of the concrete type by
implementing an AbstractingMappingCouchbaseConverter that inspects the
'subtype' property.

Closes #1365.

Co-authored-by: Michael Reiche <michael.reiche@couchbase.com>
2022-03-14 09:37:51 -07:00
Michael Reiche
d9327ceea2 Fix update to cache documentation. (#1359)
Closes #1358.
2022-02-22 10:09:25 -08:00
Michael Reiche
5804dd5a7e Reinstate CouchbaseCache documentation. (#1357)
Closes #1356.
2022-02-22 09:56:53 -08:00