Commit Graph

135 Commits

Author SHA1 Message Date
Simon Baslé
c29727595c DATACOUCH-137 - queryDerivation for N1QL annotated methods.
Abstracted the N1QL-based variants in AbstractN1qlBasedQuery. This implementation doesn't recognize QueryParams or QueryPlan anymore in the method parameters so that the method signatures are not store-dependent.

Added query derivation from PartTree to N1QL query, using N1qlQueryCreator.

Unit tested the mapping between a Part.Type and the corresponding N1QL Expression.
2015-07-10 16:40:54 +02:00
Simon Baslé
9deaf6b480 DATACOUCH-136 - Add @N1QL query annotation.
The annotation allows to execute N1QL queries that are provided inline. For ease of use, one can use the placeholder $SELECT_ENTITY$ instead of writing the SELECT and FROM clauses.

QueryParams passed in as a method parameter will be used to enrich the Query. Other parameters on the annotated method will be used as values for positional placeholders in the statement.

The template's findByN1QL now expect enough data to reconstruct the full CouchbaseDocument (including ID and CAS), the ad hoc version of it has been renamed findByN1QLProjection.
2015-07-10 14:50:34 +02:00
Simon Baslé
b9f23f3fd5 DATACOUCH-135 - Migrate to Couchbase SDK 2.0 and add N1QL find method.
Adaptation were made to use SDK 2.0:
 - Reworked the configuration approach (more parts to be configured, like Environment, Cluster and Bucket)
 - Added a new xml schema for configuration of 2.0 version
 - Adapted the template
 - Added N1QL support in the template (findByN1QL)
 - Removed the cache package
 - Adapted the repository
 - Better separated Unit Tests from Integration Tests

All integration and unit tests pass, except one (SimpleCouchbaseRepositoryTests.shouldFindCustom).

Customisation of a ViewQuery will be addressed in another ticket.
2015-07-10 14:46:30 +02:00
Oliver Gierke
28dcdee1db DATACOUCH-130 - Updated changelog. 2015-07-01 10:20:08 +02:00
Oliver Gierke
702e74e158 DATACOUCH-131 - Updated changelog. 2015-07-01 08:00:02 +02:00
Oliver Gierke
0b78f207d9 DATACOUCH-132 - Updated changelog. 2015-06-30 14:13:06 +02:00
Christoph Strobl
de1c2581f7 DATACOUCH-129 - Ensure Spring Framework 4.2 compatibility.
Removed deprecated (and in 4.2 removed) usage of ConversionServiceFactory in MappingCouchbaseConverter.

Original pull request: #42.
2015-06-30 10:49:18 +02:00
Oliver Gierke
946c6cbdcc DATACOUCH-127 - Prepare 1.4.0.M1 (Gosling M1). 2015-06-02 08:25:10 +02:00
Oliver Gierke
857573874d DATACOUCH-127 - Updated changelog. 2015-06-02 08:24:54 +02:00
A.J. Brown
572e48b4b6 DATACOUCH-126: add the repositoryBaseClass annotation attribute.
The repositoryBaseClass attribute is needed for spring-data-commons 1.4
support.  Without it, an assertion fails while spring is trying to
configure the repositories enabled by this annotation,.
2015-05-16 11:59:08 +02:00
Oliver Gierke
45f150e7a1 DATACOUCH-122 - Prepare 1.3.0.RELEASE (Fowler GA). 2015-03-23 12:04:16 +01:00
Oliver Gierke
69903593be DATACOUCH-122 - Updated changelog. 2015-03-23 12:04:03 +01:00
Oliver Gierke
7905f22191 DATACOUCH-122 - Polish reference docs before release.
Updated copyright years. Fall back to locally available Spring Data Commons reference docs as the remote variant doesn't seem to work currently. Included reference to the return type listing appendix from Spring Data Commons.
2015-03-23 11:14:53 +01:00
Oliver Gierke
9f12576900 DATACOUCH-121 - Prepare 1.3.0.RC1 (Fowler RC1). 2015-03-05 16:24:51 +01:00
Oliver Gierke
d37849bcd0 DATACOUCH-121 - Updated changelog. 2015-03-05 15:54:30 +01:00
Michael Nitschinger
4af3f32abb DATACOUCH-117 - Make sure fixture docs are persisted on tests. 2015-03-05 11:15:23 +01:00
Mark Paluch
2da3840334 DATACOUCH-109 - Provide CDI support for Spring Data Couchbase repositories
Initial integration to enable CDI usage of Spring Data Couchbase repositories
along with custom repository implementations.
2015-02-20 10:13:23 +01:00
Joel Stevenson
76be140c07 DATACOUCH-102 - Pass event source to onBeforeDelete() and onAfterDelete() event handlers 2015-02-20 09:58:39 +01:00
Ståle Lyngaas
bfc4019eb1 DATACOUCH-110 - Tests from @winard pull request 2015-02-20 09:48:32 +01:00
Ståle Lyngaas
5ed6ec3490 DATACOUCH-110 - SimpleTypeHolders in CouchbaseList
Include the customSimpleTypes from Converters in SimpleTypeHolders
2015-02-20 09:48:26 +01:00
kkrol89
ff15112959 DATACOUCH-25 - added support for TTL properties in Couchbase Cache Manager 2015-02-16 11:22:54 +01:00
Oliver Gierke
19df181749 DATACOUCH-119 - Updated changelog. 2015-01-28 20:49:56 +01:00
Oliver Gierke
39170eb0c2 DATACOUCH-118 - Updated changelog. 2015-01-28 10:06:35 +01:00
Michael Nitschinger
264266c792 DATACOUCH-117 - Fix flaky tests when asserting json objects.
This changeset also increses the timeout for operations to 10 seconds
to reduce the possibility of false timeouts during test runs.
2015-01-20 10:47:16 +01:00
Oliver Gierke
1dd840cea5 DATACOUCH-116 - Prepare 1.3.0.M1 (Fowler M1). 2014-12-01 11:33:26 +01:00
Oliver Gierke
74c476e6c0 DATACOUCH-116 - Updated changelog. 2014-12-01 11:33:19 +01:00
Oliver Gierke
7bedc916f8 DATACOUCH-114 - Updated changelog. 2014-11-28 12:11:24 +01:00
Oliver Gierke
92b161251d DATACOUCH-113 - CouchbaseCache now implements Spring 4.1's Cache interface.
Added putIfAbsent(…) to make sure CouchbaseCache can be used in a Spring 4.1 environment.
2014-10-30 10:43:13 +01:00
Oliver Gierke
04e4544a6f DATACOUCH-107 - Prepare 1.2.0.RELEASE (Evans GA). 2014-09-05 09:23:54 +02:00
Oliver Gierke
5f6142bf49 DATACOUCH-107 - Updated changelog. 2014-09-05 09:23:39 +02:00
Michael Nitschinger
9f35068629 DATACOUCH-108 - Fix nondeterministic JSON response assertions. 2014-09-05 08:25:55 +02:00
Oliver Gierke
502d17e6b7 DATACOUCH-106 - Updated changelog. 2014-09-05 07:49:36 +02:00
Michael Nitschinger
b8866b3dac DATACOUCH-94: Move FieldNamingStrategy to commons. 2014-08-26 10:21:46 +02:00
Michael Nitschinger
6844364a35 DATACOUCH-97: Expose the CouchbaseClient in the template. 2014-08-26 10:06:23 +02:00
Oliver Gierke
3c5ff86eab DATACOUCH-103 - Polished reference documentation. 2014-08-22 15:40:17 +02:00
Oliver Gierke
a6421c2766 DATACOUCH-101 - Prepare 1.2.0.RC1 (Evans RC1). 2014-08-13 15:05:21 +02:00
Oliver Gierke
5cabe7dfca DATACOUCH-101 - Updated changelog. 2014-08-13 15:05:08 +02:00
Oliver Gierke
5ad33c3510 DATACOUCH-99 - Updated changelog. 2014-08-13 11:23:23 +02:00
Greg Turnquist
da08541186 DATACOUCH-100: Migrate to Asciidoctor for reference documentation
Convert the existing docbook reference manual to asciidoctor
2014-08-07 15:53:31 -05:00
Oliver Gierke
4331edfab9 DATACOUCH-96 - Prepare 1.2.0.M1 (Evans M1). 2014-07-10 17:14:49 +02:00
Oliver Gierke
92a5a27976 DATACOUCH-96 - Updated changelog. 2014-07-10 17:14:32 +02:00
Oliver Gierke
77a7940908 DATACOUCH-95 - Updated changelog. 2014-07-10 17:09:05 +02:00
Oliver Gierke
bf687f5e61 DATACOUCH-87 - Prepare 1.1 GA. 2014-05-20 16:26:44 +02:00
Oliver Gierke
581a608d8a DATACOUCH-87 - Updated changelog. 2014-05-20 16:26:28 +02:00
Michael Nitschinger
a2cd30af3e DATACOUCH-86 - Implement Spring4 cache get with cast.
This changeset extends the CouchbaseCache to be compatible with the newly
added method of the Spring 4 cache interface.
2014-05-19 12:11:29 +02:00
Oliver Gierke
1a4ba5522c DATACOUCH-84 - Prepare 1.1.0.RC1.
Upgraded to Spring Data Parent 1.4.0.RC1 and Spring Data Commons 1.8.0.RC1. Switched to milestone repository.
2014-05-02 14:12:57 +02:00
Oliver Gierke
6b8b06ec72 DATACOUCH-84 - Update changelog. 2014-05-02 14:10:31 +02:00
Oliver Gierke
d255c43b63 DATACOUCH-84 - Added headline to changelog.
This will make sure we can automatically update the changelog before a release.
2014-04-30 12:51:36 +02:00
Michael Nitschinger
e9ae5ba1c5 DATACOUCH-82 - Implement custom FieldNamingStrategies and abbreviation support. 2014-04-14 16:10:36 +02:00
Oliver Gierke
df94b3a18f DATACOUCH-79 - Prepare 1.1 M1. 2014-03-31 17:55:03 +02:00