Commit Graph

750 Commits

Author SHA1 Message Date
mikereiche
05fb9eadbe DATACOUCH-585 - Support ScanConsistency for count() queries. 2020-07-17 11:53:45 -07:00
mikereiche
e2444403a7 DATACOUCH-580 - Do not automatically insert n1ql.filter predicate in string query.
Since it is difficult to determine where the n1ql.filter (which typically
filters on _class), and also because it is not mandator, including
the n1ql.filter in the @query is left up to the author of the query.
Example:
@query("#{#n1ql.selectEntity} where #{#n1ql.filter} and lastname = $1")
2020-07-15 11:13:50 -07:00
mikereiche
d2456bb166 DATACOUCH-533 - Promote id field if no annotation id.
Promote id field if no annotation id.
Note that there is no longer any Couchbase @Id annotation - only
the Spring @id annotation.
2020-07-02 10:36:31 -07:00
mikereiche
ecaf58db75 DATACOUCH-532 - Use parameters in queries instead of literals.
This will allow query plans to be reused for different parameters.
2020-06-25 19:30:21 -07:00
mikereiche
5cd916bea4 DATACOUCH-577 - Fix tests that run only when using UNMANAGED couchbase server.
Some of the tests that run as UNMANAGED and pass when ran from intellij were
failing when ran from the command-line mvn, or when ran together will other tests.
2020-06-25 13:18:17 -07:00
Mark Paluch
3c6f245802 DATACOUCH-548 - After release cleanups. 2020-06-25 11:58:24 +02:00
Mark Paluch
8d8dd6a03d DATACOUCH-548 - Prepare next development iteration. 2020-06-25 11:58:21 +02:00
Mark Paluch
324056d933 DATACOUCH-548 - Release version 4.1 M1 (2020.0.0). 2020-06-25 11:48:51 +02:00
Mark Paluch
1053a9b929 DATACOUCH-548 - Prepare 4.1 M1 (2020.0.0). 2020-06-25 11:48:20 +02:00
Mark Paluch
b39af3d939 DATACOUCH-548 - Updated changelog. 2020-06-25 11:48:18 +02:00
mikereiche
c7f41f57ed DATACOUCH-574 - Support countBy...() query method calls in repository. 2020-06-24 16:00:26 -07:00
mikereiche
cd595995ed DATACOUCH-573 - use same name for count in query 2020-06-23 12:40:01 -07:00
mikereiche
54d1a45b35 DATACOUCH-572 - fix compile error from DATACOUCH-571 2020-06-23 09:44:42 -07:00
mikereiche
fc67a7b541 DATACOUCH-569 - Add tests for DATACOUCH-560 - serialization of nested objects (CouchbaseDocument) and lists (CouchbaseList) 2020-06-22 11:07:47 -07:00
mikereiche
e1d39fdb6f DATACOUCH-571 fix delimiters in generated id
Also clean up test domain/Config.java
2020-06-22 11:01:17 -07:00
mikereiche
69f1ff5791 DATACOUCH-546 - set generated id on entity returned to caller 2020-06-19 14:56:37 -07:00
Michael Reiche
db95c7c280 Merge pull request #228 from runnerway/DATACOUCH-560
DATACOUCH-560 - Serialization of CouchbaseDocument and CouchbaseList.
2020-06-16 13:40:51 -07:00
mikereiche
041b987eaf DATACOUCH-484 - thread safety parameters test 2020-06-16 13:37:22 -07:00
mikereiche
610c02c66e DATACOUCH-484 - test to demonstrate that parameters are thread-safe 2020-06-15 13:00:25 -07:00
Andrea Torlaschi
c7f12a2237 DATACOUCH-560 - Serialization of CouchbaseDocument and CouchbaseList.
Add support for saving document with lists and composed objects.
Convert CouchbaseDocument/CouchbaseList to Map/List before saving.
2020-06-10 12:27:15 -07:00
Mark Paluch
dddee9fb82 DATACOUCH-547 - Updated changelog. 2020-06-10 14:31:01 +02:00
Mark Paluch
57db579e0a DATACOUCH-529 - Updated changelog. 2020-06-10 12:29:54 +02:00
Mark Paluch
c30d9f37b9 DATACOUCH-528 - Updated changelog. 2020-06-10 11:47:11 +02:00
mikereiche
fbf9b3eb29 DATACOUCH-545 - return null if not found instead of throwing an exception 2020-06-09 15:43:33 -07:00
Mark Paluch
24eaa8494c DATACOUCH-565 - Use standard Spring code of conduct.
Using https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md.
2020-06-09 16:06:39 +02:00
Michael Nitschinger
7ea8284b6f DATACOUCH-562 - Upgrade Couchbase SDK to 3.0.5 2020-06-09 13:59:12 +02:00
Andrea Torlaschi
fed0e5f415 DATACOUCH-560 - Serialization of CouchbaseDocument and CouchbaseList.
Add support for saving document with lists and composed objects.
Convert CouchbaseDocument/CouchbaseList to Map/List before saving.
2020-06-09 01:19:04 +02:00
mikereiche
95c69ea8cc DATACOUCH-525 - support custom type field name and custome type field value
MOTIVATION
customers would like to specify a type field other than _class, and
would like to specify a type field value other than the class name
of the domain object

CHANGES
Follow the instructions at
https://stackoverflow.com/questions/38847605/how-to-use-spring-data-with-couchbase-without-class-attribute
in the test domain, supply a CustomMappingCouchbaseConvert class that leverates a
TypeBasedCouchbaseTypeMapper, which in turn uses a TypeAwareTypeInformationMapper.
The typeKey used is "t". The TypeAwareTypeInformationMapper uses the DocumentType annotation
as the value for the type map entry. The domain Person object has @DocumentType("p"), which
will result in type mapping of "t" : "p" for Person objects.

In addition, when a query is composed, the typeKey and typeValue are taken from the converter.
2020-06-05 10:43:39 -07:00
mikereiche
dafff211a4 DATACOUCH-542 - support @Field to supply a different name for a field 2020-06-04 09:00:42 -07:00
Michael Reiche
25e44bae87 Merge pull request #222 from spring-projects/datacouch_561_better_string_query_testing
DATACOUCH-561 - Better Testing for String Query
2020-05-29 15:26:53 -07:00
mikereiche
0c8c8245fb DATACOUCH-561 - Better Testing for String Query 2020-05-28 22:04:25 -07:00
mikereiche
749c0a84e8 DATACOUCH - 534 Add support for Query annotation 2020-05-28 09:05:00 -07:00
Mark Paluch
3f3bd9d1a8 DATACOUCH-530 - After release cleanups. 2020-05-12 12:40:31 +02:00
Mark Paluch
a5a28b42fd DATACOUCH-530 - Prepare next development iteration. 2020-05-12 12:40:29 +02:00
Mark Paluch
5cd52331a7 DATACOUCH-530 - Release version 4.0 GA (Neumann). 2020-05-12 12:28:24 +02:00
Mark Paluch
80afd8dd4f DATACOUCH-530 - Prepare 4.0 GA (Neumann). 2020-05-12 12:28:01 +02:00
Mark Paluch
369dfd3f9e DATACOUCH-530 - Updated changelog. 2020-05-12 12:27:59 +02:00
Mark Paluch
e1adafc851 DATACOUCH-544 - Upgrade to Couchbase SDK 3.0.3. 2020-05-12 09:22:15 +02:00
Michael Nitschinger
33fdffab2f DATACOUCH-539 - Deprecate annotations before GA
This changeset also brings back deleted annotations so that they
do not cause build issues in other components.
2020-05-11 15:05:53 +02:00
Michael Nitschinger
4e229448f2 DATACOUCH-519 - Clarify Spring Boot compatibility. 2020-05-11 13:22:39 +02:00
Michael Nitschinger
799fec702c DATACOUCH-538 - Add scan consistency to analytics query template 2020-05-08 17:01:21 +02:00
Michael Nitschinger
405df74fa0 DATACOUCH-519 - Docs and small changes for transaction support. 2020-05-08 15:34:17 +02:00
deniswsrosa
ef6fb9c43b DATACOUCH-519 - Update migration docs 2020-05-08 13:49:39 +02:00
Michael Nitschinger
7773a19e42 DATACOUCH-531 - Add license headers to missing files. 2020-05-06 15:10:22 +02:00
Michael Nitschinger
b47fc007b5 DATACOUCH-531 - Initial javadoc polish for GA 2020-05-06 14:54:34 +02:00
Michael Nitschinger
e262a05184 DATACOUCH-519 - Apply formatting for changes 2020-05-06 10:35:04 +02:00
mikereiche
e8e13ffebc DATACOUCH-519 - Reinstate template auditing
This reinstates the auditing that was present before the major
refactoring. Additional testing for createdBy, createdDate,
lastModifiedBy, lastModifiedDate has been added as well.
2020-05-06 10:32:11 +02:00
Mark Paluch
ebb8d39afd DATACOUCH-514 - After release cleanups. 2020-04-28 15:11:43 +02:00
Mark Paluch
460d9a71be DATACOUCH-514 - Prepare next development iteration. 2020-04-28 15:11:42 +02:00
Mark Paluch
39fa5a906b DATACOUCH-514 - Release version 4.0 RC2 (Neumann). 2020-04-28 15:03:53 +02:00