Commit Graph

773 Commits

Author SHA1 Message Date
mikereiche
4a52268f19 DATACOUCH-604 - Fix NPE when looking for Id field in interface.
This was failing with a repository for the domain object CouchbaseOAuth2AccessToken.
The following dependency is needed.

        <dependency>
            <groupId>org.springframework.security.oauth</groupId>
            <artifactId>spring-security-oauth2</artifactId>
            <version>2.4.1.RELEASE</version>
        </dependency>

package org.springframework.data.couchbase.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.couchbase.core.mapping.Document;
import org.springframework.data.couchbase.core.mapping.Field;
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

@Document(expiry = 30 * 24 * 60 * 60)
public class CouchbaseOAuth2AccessToken extends DefaultOAuth2AccessToken {

	private static final long serialVersionUID = 6537949925775752989L;

	@Id
	private String tokenId;

	@Field
	private String authentication;

	@Field
	private String authenticationKey;

	@Field
	private String clientId;

	@Field
	private String userName;

	// getters and setters omitted for brevity

	private CouchbaseOAuth2AccessToken() {
		this((String) null);
	}

	public CouchbaseOAuth2AccessToken(OAuth2AccessToken accessToken) {
		super(accessToken);
		this.tokenId = accessToken.getValue();
	}

	public CouchbaseOAuth2AccessToken(String value) {
		super(value);
		this.tokenId = value;
	}

}
2020-09-16 13:04:07 -07:00
Mark Paluch
07c28fe7fe DATACOUCH-601 - After release cleanups. 2020-09-16 14:05:29 +02:00
Mark Paluch
a32f2df5d0 DATACOUCH-601 - Prepare next development iteration. 2020-09-16 14:05:26 +02:00
Mark Paluch
bd4ca4cb6f DATACOUCH-601 - Release version 4.1 RC1 (2020.0.0). 2020-09-16 13:57:43 +02:00
Mark Paluch
b69fcb8afe DATACOUCH-601 - Prepare 4.1 RC1 (2020.0.0). 2020-09-16 13:57:09 +02:00
Mark Paluch
5e3117da29 DATACOUCH-601 - Updated changelog. 2020-09-16 13:57:07 +02:00
Mark Paluch
16e86f83a1 DATACOUCH-602 - Updated changelog. 2020-09-16 12:16:35 +02:00
Mark Paluch
8242b53b17 DATACOUCH-592 - Updated changelog. 2020-09-16 11:20:11 +02:00
Mark Paluch
eeb03d076f DATACOUCH-591 - Updated changelog. 2020-09-16 10:39:02 +02:00
Mark Paluch
0b79dabfc7 DATACOUCH-607 - Upgrade to Couchbase SDK 3.0.8. 2020-09-14 15:15:32 +02:00
mikereiche
23d2f61d45 DATACOUCH-595 - Add cas to replace options if present on entity. 2020-09-11 15:18:27 -07:00
Mark Paluch
d9eefc22cb DATACOUCH-593 - Updated changelog. 2020-08-12 13:25:53 +02:00
Mark Paluch
ddeca8868b DATACOUCH-578 - After release cleanups. 2020-08-12 12:00:24 +02:00
Mark Paluch
ff193996a7 DATACOUCH-578 - Prepare next development iteration. 2020-08-12 12:00:21 +02:00
Mark Paluch
8799ab0aed DATACOUCH-578 - Release version 4.1 M2 (2020.0.0). 2020-08-12 11:52:07 +02:00
Mark Paluch
a047126c36 DATACOUCH-578 - Prepare 4.1 M2 (2020.0.0). 2020-08-12 11:51:41 +02:00
Mark Paluch
2d2fc667e8 DATACOUCH-578 - Updated changelog. 2020-08-12 11:51:39 +02:00
Mark Paluch
88492c743b DATACOUCH-599 - Upgrade to Couchbase SDK 3.0.7. 2020-08-10 11:15:48 +02:00
Mark Paluch
69c006291c DATACOUCH-565 - Fix link to code of conduct. 2020-07-28 15:41:04 +02:00
Mark Paluch
7ff88a1400 DATACOUCH-568 - Updated changelog. 2020-07-22 10:38:02 +02:00
Mark Paluch
4694c83b1c DATACOUCH-567 - Updated changelog. 2020-07-22 10:08:48 +02:00
Mark Paluch
00ee63b040 DATACOUCH-566 - Updated changelog. 2020-07-22 09:44:34 +02:00
Mark Paluch
8107f984cc DATACOUCH-586 - Upgrade to Couchbase Driver 3.0.6. 2020-07-22 08:55:23 +02:00
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