Commit Graph

824 Commits

Author SHA1 Message Date
Michael Reiche
0d110de7b5 DATACOUCH-661 - Fix integrations tests from 650. (#281)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-12-09 14:04:25 -08:00
Mark Paluch
57c21a7e62 DATACOUCH-650 - Polishing.
Reorder methods. Remove superfluous final keyword. Reformat pom. Fix dependency to Spring Data Commons.

Original pull request: #279.
2020-12-09 14:03:50 -08:00
Jens Schauder
dfd2dd66b3 DATACOUCH-650 - Implements CrudRepository and ReactiveCrudRepository.deleteById(Iterable<ID> ids).
Original pull request: #279.
2020-12-09 14:01:25 -08:00
Michael Reiche
788f7d999b DATACOUCH-672 - reinstate replace expiry tests (#289)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-12-09 08:38:22 -08:00
Michael Reiche
f33cd3c79f DATACOUCH-666 - Handle immutable entity in replace. (#288)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-12-09 08:37:01 -08:00
Michael Reiche
e97ef653e8 DATACOUCH-630 - Add expiry to replace 4.1.x. (#286)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-12-09 07:56:39 -08:00
Mark Paluch
d925df2bc3 DATACOUCH-648 - After release cleanups. 2020-12-09 16:46:55 +01:00
Mark Paluch
b2a0e69417 DATACOUCH-648 - Prepare next development iteration. 2020-12-09 16:46:49 +01:00
Mark Paluch
57154e2bcb DATACOUCH-648 - Release version 4.1.2 (2020.0.2). 2020-12-09 16:01:27 +01:00
Mark Paluch
d313bac1c1 DATACOUCH-648 - Prepare 4.1.2 (2020.0.2). 2020-12-09 16:00:56 +01:00
Mark Paluch
3e8bda0d1e DATACOUCH-648 - Updated changelog. 2020-12-09 16:00:51 +01:00
Mark Paluch
d83036fbf0 DATACOUCH-640 - Updated changelog. 2020-12-09 15:33:31 +01:00
Mark Paluch
b73fd67c5c DATACOUCH-638 - Updated changelog. 2020-12-09 12:42:32 +01:00
Mark Paluch
9d50ed979b DATACOUCH-637 - Updated changelog. 2020-12-09 09:59:17 +01:00
Michael Reiche
3138b4a9c9 DATACOUCH-662 Upgrade Couchbase Java SDK to 3.0.10 for 4.1.x. (#283)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-12-08 09:30:43 -08:00
Mark Paluch
b5d96b8e71 DATACOUCH-639 - After release cleanups. 2020-11-11 12:14:54 +01:00
Mark Paluch
6ed5f52565 DATACOUCH-639 - Prepare next development iteration. 2020-11-11 12:14:51 +01:00
Mark Paluch
18ea50b7fa DATACOUCH-639 - Release version 4.1.1 (2020.0.1). 2020-11-11 11:59:00 +01:00
Mark Paluch
9d671a8151 DATACOUCH-639 - Prepare 4.1.1 (2020.0.1). 2020-11-11 11:58:36 +01:00
Mark Paluch
d50b09c652 DATACOUCH-639 - Updated changelog. 2020-11-11 11:58:34 +01:00
Mark Paluch
02aca1991d DATACOUCH-641 - Enable Maven caching for Jenkins jobs. 2020-10-30 08:31:38 +01:00
Mark Paluch
17e2483087 DATACOUCH-635 - Enable maintenance branch build. 2020-10-29 09:54:35 +01:00
Mark Paluch
6c7e882d2d DATACOUCH-635 - After release cleanups. 2020-10-28 16:10:55 +01:00
Mark Paluch
4b2a954d30 DATACOUCH-635 - Prepare next development iteration. 2020-10-28 16:10:52 +01:00
Mark Paluch
3c69b45854 DATACOUCH-635 - Release version 4.1 GA (2020.0.0). 2020-10-28 15:46:57 +01:00
Mark Paluch
6a51b0c573 DATACOUCH-635 - Prepare 4.1 GA (2020.0.0). 2020-10-28 15:46:33 +01:00
Mark Paluch
3d52b583b8 DATACOUCH-635 - Updated changelog. 2020-10-28 15:46:28 +01:00
Mark Paluch
7c5be60f9e DATACOUCH-611 - Updated changelog. 2020-10-28 15:03:04 +01:00
Mark Paluch
29c37ba80d DATACOUCH-610 - Updated changelog. 2020-10-28 12:15:06 +01:00
Mark Paluch
eb35485f2d DATACOUCH-636 - Updated changelog. 2020-10-28 11:32:32 +01:00
Greg L. Turnquist
b170c3e3f3 DATACOUCH-614 - Use JDK 15 for latest CI jobs. 2020-10-26 13:01:45 -05:00
Michael Reiche
182d45ab6e DATACOUCH-625 - Save doesn't return updated entity if immutable. (#274)
Modified applyUpdatedCas() to return accessor.getBean() which will
occur if the version property is Immutable.
Created applyUpdateId() that is analogous to applyUpdatedCas()
Factored out the equals() method that was used by a number of
test entity objects.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-22 10:54:43 -07:00
Haris Alesevic
a85720c8f4 DATACOUCH-619 - FindByMatchingQuery integration test
Verify that findByQuery works as expected (fixed as part of DATACOUCH-603)
2020-10-14 14:55:40 -07:00
Michael Reiche
1955cf45cd DATACOUCH-626 - Handle reading into entity with only all-args constructor; version primative type.
The version arg - which is not in the document - will be passed
into the constructor as a null which will fail if it is a primitive
type. This change will pre-populated the converted object with
the version/cas, so that it is not null.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-14 14:54:01 -07:00
Christoph Strobl
97eda5441b DATACOUCH-612 - After release cleanups. 2020-10-14 14:48:48 +02:00
Christoph Strobl
242ce87628 DATACOUCH-612 - Prepare next development iteration. 2020-10-14 14:48:46 +02:00
Christoph Strobl
46cf6f1d78 DATACOUCH-612 - Release version 4.1 RC2 (2020.0.0). 2020-10-14 14:28:56 +02:00
Christoph Strobl
192fb27b60 DATACOUCH-612 - Prepare 4.1 RC2 (2020.0.0). 2020-10-14 14:27:38 +02:00
Christoph Strobl
cc15cd50c8 DATACOUCH-612 - Updated changelog. 2020-10-14 14:27:37 +02:00
Michael Reiche
3cccf1f2c3 DATACOUCH-634 - Upgrade Couchbase Java SDK to 3.0.9. (#271)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-13 14:58:22 -07:00
Michael Reiche
0ce0f36b49 DATACOUCH-623 - Add replace() method to CouchbaseRepository for CAS usage. (#268)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-12 17:16:01 -07:00
Michael Reiche
7c431d640f DATACOUCH-583 - Nested properties in queries not working. (#270)
The complete property path was being quoted instead of the individual
components.  ie.  `address.street` instead of `address`.`street`
Also fixed another issue - changed the maybeQuote() method for
property names to correctly look for back-tics instead of double
quotes and changed the name accordingly.

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-12 13:22:19 -07:00
Michael Reiche
ed02ed535e DATACOUCH-632 - Fix compilation error introduced in DATACOUCH-603. (#269)
Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-09 18:04:03 -07:00
Michael Reiche
1b5c32150e DATACOUCH-603 Do not cast query parameters in N1qlQueryCreator.
For IN and NOT_IN - they can take varargs, an array or a JsonArray
Don't cast query criteria parameters, let parameter accessor handle that.
Fixed conversion of query criteria values to parameters
Cleaned up QueryCriteria

Co-authored-by: mikereiche <michael.reiche@couchbase.com>
2020-10-09 14:59:16 -07:00
mikereiche
e72cdba6ee DATACOUCH-616 - Fix parsing of String Query containing conditionals in quotes
For a query as below that has conditional portions, the parsing for
parameters was being done before the conditional portions were being
resolved, which left the parameters between quotes where they wre
not being recognized as query parameters.

@Query("#{#n1ql.selectEntity} WHERE #{#n1ql.filter} " +
	" #{#projectIds != null ? 'AND iata IN $1' : ''} ")
Long count(@Param("projectIds") List<String> projectIds)
2020-10-05 10:45:40 -07:00
mikereiche
82edad5759 DATACOUCH-605 - Support ScanConsistency in n1ql queries 2020-10-05 10:14:03 -07:00
Haris Alesevic
fab72ee9c9 DATACOUCH-615 Use query in removeByQuery (#264)
* DATACOUCH-615 Use query in removeByQuery

Use provided query instead of hardcoded statement.

* DATACOUCH-615 Better method naming in Query class

* DATACOUCH-615 Replace hard-coded meta fields

* DATACOUCH-615 Test findByQuery.matching

* DATACOUCH-615 Remove failing test
2020-10-05 10:11:37 -07:00
mikereiche
2a06578145 DATACOUCH-620 - Fix nested object id/@Id issue.
Only treat the id (or @Id) field in top-level objects as the id.
2020-10-05 10:01:15 -07:00
Greg L. Turnquist
946e835b72 DATACOUCH-614 - Only test other versions for local changes on main branch. 2020-09-18 11:29:38 -05:00
mikereiche
ae43ed9949 DATACOUCH-604 - Fix NullPointerException when identifying Id fields. Handle @Field. 2020-09-16 13:46:48 -07:00