Commit Graph

261 Commits

Author SHA1 Message Date
Subhashni Balakrishnan
620586af3b DATACOUCH-90 Polishing
Add modified couchbase specific jsr310 converters which converts to
number formats instead of date objects which cannot be handled by the
client.

Original pull request: #139.
2017-04-11 16:17:13 -07:00
Subhashni Balakrishnan
de4e02cedb DATACOUCH-90 - Add commons Jsr310 converters to support Java 8 date/time
Original pull request: #139.
2017-04-10 11:50:15 -07:00
Subhashni Balakrishnan
4cca923c59 DATACOUCH-290 - Upgrade to java-client 2.4.4
Original pull request: #136.
2017-04-10 11:33:02 -07:00
Oliver Gierke
f86bbe03ab DATACOUCH-271 - Updated changelog. 2017-04-10 14:27:55 +02:00
Alexander Derkach
6429dca5e6 DATACOUCH-287 - Add CAS operations to RxJavaCouchbaseOperations.
Original pull request: #135.
2017-04-06 06:57:53 -07:00
Oliver Gierke
28159aedef DATACOUCH-259 - Prepare 3.0 M2 (Kay). 2017-04-04 21:12:03 +02:00
Oliver Gierke
7ba9b3c98f DATACOUCH-259 - Updated changelog. 2017-04-04 21:12:00 +02:00
Mark Paluch
dc0f552841 DATACOUCH-289 - Adapt to API changes in RepositoryConfigurationExtensionSupport. 2017-03-27 09:41:19 +02:00
Oliver Gierke
1fc4a05f37 DATACOUCH-273 - Adapt API changes after upgrade to Mockito 2.7. 2017-03-24 09:57:13 +01:00
Mark Paluch
439ab14131 DATACOUCH-273 - Adapt to API changes in Spring Data Commons. 2017-03-24 09:57:13 +01:00
Mark Paluch
141dbefd3d DATACOUCH-273 - Integrate Data Commons Java 8 upgrade branch.
Replace PersistentEntity.doWithProperties(…) and .doWithAssociations(…) with stream processing using PersistentEntity.getPersistentProperties() and PersistentEntity.getAssociations().
2017-03-24 09:57:13 +01:00
Oliver Gierke
b1e619fec0 DATACOUCH-272 - Updated changelog. 2017-03-02 11:11:08 +01:00
Subhashni Balakrishnan
1c33ccc4c8 DATACOUCH-279 - Re-add AbstractCouchbaseDataConfiguration
Motivation
----------
AbstractCouchbaseDataConfiguration was removed and
AbstractCouchbaseConfiguration was made the only configuration support
which implemented CouchbaseConfigurer. This broke integration with
Spring boot as they used CouchbaseConfigurer to auto configure client
initialization properties.

Changes
-------
Bring back support for AbstractCouchbaseDataConfiguration which allows the use
of CouchbaseConfigurer. Also added a similar configuration support for reactive
data repositories. Common beans between reactive and blocking are implemented
in CouchbaseConfigurationSupport class. The existing tests in
AbstractCouchbaseDataConfigurationTest does test this scenario. However the
previous commit had also changed the test because of the unawareness of spring
boot integration.

Results
-------
It is now possible to configure SDC with CouchbaseConfigurer instead of
only having to extend from AbstractCouchbaseConfiguration.
2017-02-07 10:15:00 +01:00
Subhashni Balakrishnan
c26053868c DATACOUCH-265 - Verify entity filter is not added, if n1ql.filter is not in query
Original pull request: #128.
2017-02-05 13:08:38 -08:00
Subhashni Balakrishnan
5d36ecc12b DATACOUCH-265 - Support pageable and sort for String based SpEL queries
Original pull request: #128.
2017-02-05 13:08:38 -08:00
Subhashni Balakrishnan
162d8124ab DATACOUCH-260 - Update to 2.4.1 and fix tests
Adapted changes to 3.0 branch

Original pull request: #131.
2017-02-05 13:08:38 -08:00
Ben Madore
8733ea3cf5 DATACOUCH-278 - Correct table reference in repository documentation
You refer to table 1 - which is the first table in THIS adoc file, but you only
generate a single-page html file, so it, in fact is displayed as table 3.

Original pull request: #129.
2017-02-05 13:08:30 -08:00
Subhashni Balakrishnan
d9510dc158 DATACOUCH-146 - Use only last emission to create a Mono for delete collection
Original pull request: #130.
2017-02-05 10:35:11 -08:00
Subhashni Balakrishnan
d62f4bbe8c DATACOUCH-146 - Reactive repositories support
- Adds experimental support for reactor types in reactive CRUD and Sorting
  repositories using RxJava1Template
- Refactor configuration and query classes to be reusable by reactive repositories

Original pull request: #130.
2017-02-05 10:34:57 -08:00
Mark Paluch
56b3842ac1 DATACOUCH-274 - Remove references to Assert single-arg methods.
Replace references to Assert single-arg methods with references to methods accepting the test object and message.

Related ticket: SPR-15196.
2017-02-01 13:14:35 +01:00
Oliver Gierke
65f2eab6c0 DATACOUCH-266 - Updated changelog. 2017-01-26 12:12:39 +01:00
Oliver Gierke
30d4d86fde DATACOUCH-267 - Updated changelog. 2017-01-26 12:12:10 +01:00
Oliver Gierke
88f33b43fc DATACOUCH-254 - Updated changelog. 2016-12-21 19:35:41 +01:00
Oliver Gierke
31d8b603ab DATACOUCH-238 - Updated changelog. 2016-12-21 18:43:08 +01:00
Subhashni Balakrishnan
b52dee3a3c DATACOUCH-251 - Wrap base where criteria with parenthesis for OR expressions.
Base criteria for the query should be wrapped before adding the entity filter criteria so the priority of filtering is clear.
2016-12-20 10:57:47 +01:00
Oliver Gierke
ce8dd97d66 DATACOUCH-262 - Adapt API in CouchbaseRepositoryFactoryBean.
Related ticket: DATACMNS-891.
2016-12-15 16:21:27 +01:00
Mark Paluch
810134d416 DATACOUCH-261 - Register CouchbaseRepositoryFactory in spring.factories.
This is required for the switch in support for multi-store detection.

Related ticket: DATACMNS-952.
2016-12-06 09:04:56 +01:00
Oliver Gierke
610a6e51d2 DATACOUCH-246 - Polishing.
Removed the dynamic return type obtained from the ResultProcessor held in a query implementation field as this breaks thread safety. We now hand the type to read into the execution methods.

Adapted test cases accordingly and removed a bit of mocking.

Original pull request: #122.
2016-12-02 18:04:15 +01:00
Subhashni Balakrishnan
ce356f827f DATACOUCH-246 - Projections support for query derivation.
Used the result processor projecting information to just fetch the selected fields and again to post process results to projection object/interfaces.

Added test for projection using DTO.

Original pull request: #122.
2016-12-02 18:04:12 +01:00
Oliver Gierke
69f15e80a1 DATACOUCH-255 - Prepare 3.0 M1 (Kay). 2016-11-23 10:35:09 +01:00
Oliver Gierke
ab51b7b9c3 DATACOUCH-255 - Updated changelog. 2016-11-23 10:35:07 +01:00
Oliver Gierke
fc15fbef0e DATACOUCH-253 - Updated changelog. 2016-11-03 18:56:50 +01:00
Oliver Gierke
85c7718f36 DATACOUCH-249 - Updated changelog. 2016-09-29 14:42:12 +02:00
Oliver Gierke
20486f685e DATACOUCH-252 - Updated changelog. 2016-09-29 11:42:12 +02:00
Oliver Gierke
33cc185de2 DATACOUCH-247 - Updated changelog. 2016-09-21 08:07:40 +02:00
Oliver Gierke
ca3b0b44e6 DATACOUCH-236 - Updated changelog. 2016-09-21 08:07:38 +02:00
Young-Gu Chae
73f86a70ec DATACOUCH-243 - CouchbaseTemplate.doRemove() handle exceptions like doPersist() 2016-08-29 10:11:28 +02:00
Andrey Rubtsov
341c41250d DATACOUCH-239 - Allow configurable expiry in @Document.
Fixes #120
2016-08-18 13:21:14 +02:00
Simon Baslé
415d8a2d23 DATACOUCH-241 - Document mixing SpEL and N1QL placeholders 2016-08-18 12:55:24 +02:00
Oliver Gierke
5f0e906ae5 DATACOUCH-221 - Prepare 2.2 M1 (Ingalls). 2016-07-27 13:51:38 +02:00
Oliver Gierke
4a02688f58 DATACOUCH-221 - Updated changelog. 2016-07-27 13:51:36 +02:00
markramach
f18f61e371 DATACOUCH-237 - Prevent groupby on generated count queries
Fixes #119
2016-07-07 11:05:51 +02:00
Simon Bland
a40919ef8e DATACOUCH-235 - Fixed multiple Couchbase environments.
Defining <couchbase:env/> in XML configuration was causing a double
instantiation of DefaultCoreEnvironment, with subsequent warning in
logs:

[main] WARN c.c.client.core.env.CoreEnvironment - More than 1 Couchbase
Environments found (2), this can have severe impact on performance and
stability. Reuse environments!
2016-06-17 15:57:51 +02:00
Oliver Gierke
c5a1bf0515 DATACOUCH-222 - Updated changelog. 2016-06-15 14:31:49 +02:00
Simon Baslé
d6b63c305a DATACOUCH-227 - Keep isOrderRetained view param, bump to SDK 2.2.8 2016-06-13 16:28:50 +02:00
Simon Baslé
b5ae111787 DATACOUCH-229 - Check N1QL error codes rather than message
This should avoid problems when the message changes on the server side
(like in Couchbase Server 4.5).
2016-05-25 19:17:32 +02:00
Simon Baslé
3abefe5882 DATACOUCH-228 - Make findByView use async client internally
This brings better performance when querying large views. Instead of
looping on a synchronously acquired list of documents to produce a list
of entities, the async API can be used internally to:
 - query the view
 - fetch the documents
 - map each document to an entity
 - collect into a List

One can then block on that Observable to get and return the List as
usual.
2016-05-25 18:26:02 +02:00
Geoffrey Mina
7a57a235d8 DATACOUCH-226 - Enable strict @Field mapping
If the MappingCouchbaseConverter strict mode is enabled and no annotation is present, the property will not be eligible for document mapping.

This allows to specifically ignore some attributes in Couchbase only. For generally ignoring attributes in any Spring Data backing store, prefer the standard `@Transient`.

Closes #112
2016-05-20 17:52:41 +02:00
Anastasiia Smirnova
811c024041 DATACOUCH-224 - Improve concurrent save/insert, optimistic locking 2016-05-10 15:48:34 +02:00
Jonathan Edwards
117f0d0968 DATACOUCH 225 - Minimal SDK 2.2.6 support 2016-05-09 09:31:23 -06:00