Commit Graph

382 Commits

Author SHA1 Message Date
David Kelly
7601b2beba DATACOUCH-484 - Thread safety issue using findBy.
Support for positional parameters necessitated caching them, however
that was not done in a threadsafe fashion.  ThreadLocal storage is
sufficient to take care of the issue.  Added test for it while at it.
2019-11-20 15:38:29 -07:00
Mark Paluch
c96c497807 DATACOUCH-488 - Prepare 3.2.2 (Moore SR2). 2019-11-18 12:31:53 +01:00
Mark Paluch
b49df4288e DATACOUCH-488 - Updated changelog. 2019-11-18 12:31:52 +01:00
Mark Paluch
b7ababbc04 DATACOUCH-487 - Updated changelog. 2019-11-18 12:16:29 +01:00
Christoph Strobl
44c036a076 DATACOUCH-481 - Prepare 3.2.1 (Moore SR1). 2019-11-04 14:54:16 +01:00
Christoph Strobl
2a51368c19 DATACOUCH-481 - Updated changelog. 2019-11-04 14:54:15 +01:00
Christoph Strobl
04a1608fcf DATACOUCH-480 - Updated changelog. 2019-11-04 10:34:53 +01:00
Mark Paluch
ffea38114f DATACOUCH-469 - Prepare 3.2 GA (Moore). 2019-09-30 15:50:44 +02:00
Mark Paluch
e9bc3ffb34 DATACOUCH-469 - Updated changelog. 2019-09-30 15:50:43 +02:00
Mark Paluch
e4a59accf0 DATACOUCH-468 - Updated changelog. 2019-09-30 11:16:17 +02:00
Mark Paluch
b02bc45b81 DATACOUCH-470 - Prepare 3.2 RC3 (Moore). 2019-09-06 10:10:13 +02:00
Mark Paluch
312527b85b DATACOUCH-470 - Updated changelog. 2019-09-06 10:10:12 +02:00
Mark Paluch
d020453008 DATACOUCH-471 - Add HTTPS entries into spring.schemas.
To resolve XSD files properly from the classpath, their HTTPS reference must be present in the spring.schemas to avoid internet interaction for resolving an XSD file.
2019-08-07 08:31:40 +02:00
Mark Paluch
65bf1579bc DATACOUCH-458 - Prepare 3.2 RC2 (Moore). 2019-08-05 15:35:05 +02:00
Mark Paluch
9ca5380c8a DATACOUCH-458 - Updated changelog. 2019-08-05 15:35:04 +02:00
Mark Paluch
f36d03527b DATACOUCH-457 - Updated changelog. 2019-08-05 11:34:29 +02:00
Mark Paluch
756d4622b1 DATACOUCH-450 - Updated changelog. 2019-08-05 11:08:57 +02:00
David Kelly
98a4999f37 DATACOUCH-383 - RxJavaCouchbaseTemplate should return generated id when saving.
Seems we fixed this for the non-Rx version, but not the RxJava version.  Followed
same basic strategy which was used for version, added a simple test.
2019-08-01 09:58:32 -07:00
Mark Paluch
1de7acd1eb DATACOUCH-465 - Adapt to changed API in Commons. 2019-07-26 09:25:40 +02:00
David Kelly
4341edf941 DATACOUCH-462 - ReactiveCouchbaseRepository count() will raise exception when bucket is empty.
Small cleanup in the deleteAll test (which actually tests this as well), while
we are there.

Also, removed an unused import
2019-06-28 10:21:41 -06:00
David Kelly
64a91f1eb6 DATACOUCH-356 Fix cast issue in deleteAll (#201)
Plus a test.  I didn't notice that Douglas Six did basically the
same thing in another PR (this was a re-do of an earlier PR which
didn't quite do what we'd like).  So since I already had it done
and had a test, I closed that PR (#163) and added him to the author
list.

Also - repository.count() raises a NoSuchElementException after you
delete all the documents.  That seems like a bug, but we will deal
with that separately.
2019-06-26 16:37:11 -06:00
Johannes Jasper
55235b2bc2 DATACOUCH-206 - Provides a way to set distinct consistency on repository methods.
* add @WithConsistency annotation
* evaluate it and set consistency in AbstractN1qlBasedQuery
* evaluate it and set consistency in ReactiveAbstractN1qlBasedQuery
* add documentation on @WithConsistency

Original pull request: #198.
2019-06-26 21:48:01 +02:00
Christoph Strobl
74e5dfea5d DATACOUCH-444 - Prepare 3.2 RC1 (Moore). 2019-06-14 14:43:17 +02:00
Christoph Strobl
c2d70ddfe6 DATACOUCH-444 - Updated changelog. 2019-06-14 14:43:16 +02:00
Christoph Strobl
1dff42a219 DATACOUCH-449 - Updated changelog. 2019-06-14 13:27:17 +02:00
Mark Paluch
9842e1f7e9 DATACOUCH-448 - Updated changelog. 2019-05-13 18:19:11 +02:00
Mark Paluch
fb2fd5a9fa DATACOUCH-447 - Updated changelog. 2019-05-13 14:59:29 +02:00
Mark Paluch
59f795741e DATACOUCH-445 - Prepare 3.2 M4 (Moore). 2019-05-13 11:59:05 +02:00
Mark Paluch
be93125d18 DATACOUCH-445 - Updated changelog. 2019-05-13 11:59:03 +02:00
Oliver Drotbohm
186b48b3cf DATACOUCH-441 - Updated changelog. 2019-05-10 14:18:15 +02:00
Oliver Drotbohm
767c746905 DATACOUCH-443 - Updated changelog. 2019-05-10 12:57:28 +02:00
Christoph Strobl
bca2c4a409 DATACOUCH-436 - Prepare 3.2 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
69c1b6fb3f DATACOUCH-436 - Updated changelog. 2019-04-11 11:23:55 +02:00
Oliver Drotbohm
599c3222e4 DATACOUCH-430 - Updated changelog. 2019-04-01 20:56:32 +02:00
Oliver Drotbohm
cc8c57ebc9 DATACOUCH-428 - Updated changelog. 2019-04-01 19:37:03 +02:00
Oliver Drotbohm
96a5929d35 DATACOUCH-440 - Updated changelog. 2019-04-01 18:52:21 +02:00
Oliver Drotbohm
e04feb97e9 DATACOUCH-427 - Updated changelog. 2019-04-01 18:49:25 +02:00
Spring Operator
2f4500e9c7 DATACOUCH-439 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 219 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #195
2019-03-22 11:19:57 +01:00
Spring Operator
769460bcb7 DATACOUCH-439 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://assets.spring.io/drupal/node/feed.xml with 1 occurrences migrated to:
  https://assets.spring.io/drupal/node/feed.xml ([https](https://assets.spring.io/drupal/node/feed.xml) result 200).
* [ ] http://stackoverflow.com/questions/tagged/spring-data with 1 occurrences migrated to:
  https://stackoverflow.com/questions/tagged/spring-data ([https](https://stackoverflow.com/questions/tagged/spring-data) result 200).
* [ ] http://stackoverflow.com/questions/tagged/spring-data-couchbase with 2 occurrences migrated to:
  https://stackoverflow.com/questions/tagged/spring-data-couchbase ([https](https://stackoverflow.com/questions/tagged/spring-data-couchbase) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://docs.spring.io/spring-data/couchbase/docs/current/api/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/couchbase/docs/current/api/ ([https](https://docs.spring.io/spring-data/couchbase/docs/current/api/) result 301).
* [ ] http://docs.spring.io/spring-data/couchbase/docs/current/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/couchbase/docs/current/reference/html/ ([https](https://docs.spring.io/spring-data/couchbase/docs/current/reference/html/) result 301).
* [ ] http://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html with 1 occurrences migrated to:
  https://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html ([https](https://docs.spring.io/spring/docs/current/spring-framework-reference/html/dao.html) result 301).
* [ ] http://help.github.com/forking/ with 1 occurrences migrated to:
  https://help.github.com/forking/ ([https](https://help.github.com/forking/) result 301).
* [ ] http://projects.spring.io/spring-data-couchbase with 2 occurrences migrated to:
  https://projects.spring.io/spring-data-couchbase ([https](https://projects.spring.io/spring-data-couchbase) result 301).
* [ ] http://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd ([https](https://www.springframework.org/schema/data/couchbase/spring-couchbase.xsd) result 301).
* [ ] http://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd ([https](https://www.springframework.org/schema/data/repository/spring-repository-1.0.xsd) result 301).
* [ ] http://www.springsource.org/projects with 1 occurrences migrated to:
  https://www.springsource.org/projects ([https](https://www.springsource.org/projects) result 301).
* [ ] http://www.springsource.org/spring-data with 1 occurrences migrated to:
  https://www.springsource.org/spring-data ([https](https://www.springsource.org/spring-data) result 301).
* [ ] http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* [ ] http://repo.spring.io/libs-snapshot with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* [ ] http://www.springsource.org/download with 1 occurrences migrated to:
  https://www.springsource.org/download ([https](https://www.springsource.org/download) result 302).

# Ignored
These URLs were intentionally ignored.

* http://www.springframework.org/schema/beans with 9 occurrences
* http://www.springframework.org/schema/context with 3 occurrences
* http://www.springframework.org/schema/data/couchbase with 10 occurrences
* http://www.springframework.org/schema/data/repository with 4 occurrences
* http://www.springframework.org/schema/tool with 4 occurrences
* http://www.w3.org/2001/XMLSchema with 3 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences

Original Pull Request: #189
2019-03-21 09:26:41 +01:00
Subhashni Balakrishnan
e1e4385896 DATACOUCH-438 - Move off deprecations in Spring Data Commons.
Remove stray import IsNewStrategyFactory. This has been removed from commons and causing build failure.

Related ticket: DATACMNS-1496.
2019-03-13 19:01:26 +01:00
Christoph Strobl
3967e2dcdd DATACOUCH-422 - Prepare 3.2 M2 (Moore). 2019-03-07 09:41:17 +01:00
Christoph Strobl
729fb1f85a DATACOUCH-422 - Updated changelog. 2019-03-07 09:41:16 +01:00
Subhashni Balakrishnan
b041f0a93e DATACOUCH-434 - Fix reactive repository asciidoc link
Original Pull Request: #179.
2019-02-26 14:08:57 -08:00
Subhashni Balakrishnan
6aadcfcc60 DATACOUCH-433 - Add docs for ANSI join usage
Original Pull Request: #178.
2019-02-26 13:59:35 -08:00
ctayeb
97fc4a0471 DATACOUCH-432 - Fix ANSI Joins OneToOne relationships
Couchbase template could get only the component type information which
works for collection properties but when the join is one-to-one for a
single generic type it would fail. The fix is use to the actual type if
the property is not a collection.

Original PR: #177.
2019-02-22 12:14:04 -08:00
Mark Paluch
5af2262029 DATACOUCH-429 - Updated changelog. 2019-02-13 11:48:00 +01:00
Subhashni Balakrishnan
2f0e255fbb DATACOUCH-415 - Improve performance by re-using the same set instance
Reuse the same instance of the set instead of recreating each time

Original PR: #176
2019-02-12 16:29:06 -08:00
Subhashni Balakrishnan
580a50b40f DATACOUCH-388 Add support for ANSI-JOIN across entities
Motivation
----------
To support ANSI JOIN across associated entities

Changes
-------
N1qlJoin annotation on an associated entity field is discovered by the
couchbaseTemplate, which uses N1qlJoinResolver to build and resolve the
query. The query can be resolved eagerly or lazily based on the fetch
type configuration. The retrieved results are then mapped to the
associated entity. In the lazy resolver, a proxy is set on the property
which resolves on the first access.

Results
-------
Verified by unit and integration tests. ANSI join is now possible across
entities.

Original PR: #174
2019-02-12 09:56:58 -08:00
Mark Paluch
79a3cccdcf DATACOUCH-419 - Updated changelog. 2019-01-10 14:15:44 +01:00
Mark Paluch
8399d94d5a DATACOUCH-418 - Updated changelog. 2019-01-10 12:26:37 +01:00