Commit Graph

271 Commits

Author SHA1 Message Date
Christoph Strobl
4885f192f8 Prepare next development iteration.
See #906
2021-02-17 14:17:47 +01:00
Christoph Strobl
11e975cb10 Release version 2.2 M3 (2021.0.0).
See #906
2021-02-17 14:00:09 +01:00
Jens Schauder
9a23493d72 Trigger BeforeConvertEvent when saving an aggregate.
Closes: #910
Original pull request: #913.
2021-01-19 09:41:59 +01:00
Jens Schauder
429f1b06b9 DATAJDBC-620 - Polishing.
Remove public modifier from tests, which is superfluous with JUnit 5.

Original pull request: #256.
2021-01-18 14:47:40 +01:00
Jens Schauder
3d4847a552 DATAJDBC-620 - The default RowMapper now gets passed to ResultSetConstructor.
Original pull request: #256.
2021-01-18 14:47:34 +01:00
Christoph Strobl
261f851fee Prepare next development iteration.
See #862
2021-01-13 15:46:58 +01:00
Christoph Strobl
6b064b544a Release version 2.2 M2 (2021.0.0).
See #862
2021-01-13 15:34:04 +01:00
Mark Paluch
394b1cec31 Update copyright year to 2021.
Closes #904
2021-01-12 11:32:07 +01:00
Jens Schauder
ba653183d1 #257 - Remove references to Jira.
All references to the Spring Jira instance are replaced by GitHub references.
2021-01-05 10:55:31 +01:00
Jens Schauder
2188b5d6cf DATAJDBC-637 - Fix tests for all databases.
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.

Original pull request: #255.
2020-12-11 08:16:55 +01:00
Greg L. Turnquist
306f1b39dd DATAJDBC-637 - Fix typo in H2 testing.
Original pull request: #254.
2020-12-11 08:16:43 +01:00
Mark Paluch
869e987e55 DATAJDBC-637 - Polishing.
Make Jsr310TimestampBasedConverters package-private. Introduce convenience constructors to improve external configuration of JdbcCustomConversions.

Original pull request: #254.
2020-12-10 11:05:29 +01:00
Jens Schauder
2efcda2a91 DATAJDBC-637 - Time conversion now preserve nanosecond precision.
The standard JSR 310 converters are no longer used for conversions between java.util.Date and java.time.*.
New converters based converting to/from Timestamp are used.

This preserves the precision because both the java.time.* API and Timestamp have nanosecond precision, while java.util.Date has not.

Original pull request: #254.
2020-12-10 11:05:29 +01:00
Mark Paluch
f0f0ef3e2a DATAJDBC-627 - Prepare next development iteration. 2020-12-09 15:32:15 +01:00
Mark Paluch
3ea60d0b0c DATAJDBC-627 - Release version 2.2 M1 (2021.0.0). 2020-12-09 15:21:55 +01:00
Jens Schauder
b1dd8042cd DATAJDBC-641 - Removes references of org.jetbrains.annotations.NotNull.
Those annotations cause build failures once the providing jar wasn't available anymore since kotlin removed that dependency.

Those annotations were present in the code by accident anyway since Spring has and uses its own set of annotations.
2020-12-07 15:38:19 +01:00
Mark Paluch
91ecc07b84 DATAJDBC-629 - Polishing.
Reorder methods.

Original pull request: #252.
2020-11-25 14:32:02 +01:00
Jens Schauder
c0d337d715 DATAJDBC-629 - Implements CrudRepository.deleteAllById(Iterable<ID>).
Original pull request: #252.
2020-11-25 14:31:49 +01:00
mhyeon-lee
33d040ac71 DATAJDBC-531 - Skip COUNT query when current page is the last page.
Original pull request: #211.
2020-11-03 15:30:24 +01:00
Mark Paluch
40c971e836 DATAJDBC-615 - Prepare next development iteration. 2020-10-28 16:10:20 +01:00
Mark Paluch
9dbb810831 DATAJDBC-615 - Release version 2.1 GA (2020.0.0). 2020-10-28 15:46:54 +01:00
Jens Schauder
1f36fbccf6 DATAJDBC-622 - Polishing.
Corrected the author tags.
I used the wrong author in the previous polishing commit.

Original pull request: #245.
2020-10-26 12:25:32 +01:00
Jens Schauder
a9c4445501 DATAJDBC-622 - Add test for negative case.
This demonstrates that the configured reference is actually used.

Original pull request: #245.
2020-10-26 11:11:33 +01:00
Jens Schauder
1ef97dd00f DATAJDBC-622 - Polishing.
Rolled back changes to tests.
Added @author and @since tags.

Original pull request: #245.
2020-10-26 11:11:16 +01:00
Antoine Sauray
41c88bcd0c DATAJDBC-622 - Support transactionManagerRef in @EnableJdbcRepositories.
Original pull request: #245.
2020-10-26 11:10:56 +01:00
Jens Schauder
f23b987642 DATAJDBC-616 - Polishing.
Corrected name since AssumeFeatureRule is not a Rule but an ExecutionListener.
2020-10-16 10:59:21 +02:00
Jens Schauder
18100b44f3 DATAJDBC-616 - Fixes a test with sporadic failures.
The schema created in the setup script didn't get cleaned up when it contained tables, which it does once the setup script ran once.
2020-10-16 10:59:21 +02:00
Jens Schauder
9658ac1668 DATAJDBC-616 - Migrates to JUnit 5.
MockitoRunner -> MockitoExtension.
SpringRunner, SpringClassRule & SpringMethodRule -> SpringExtension.
2020-10-16 10:59:21 +02:00
Christoph Strobl
05fc5d49fd DATAJDBC-602 - Prepare next development iteration. 2020-10-14 14:48:45 +02:00
Christoph Strobl
f56ddc2779 DATAJDBC-602 - Release version 2.1 RC2 (2020.0.0). 2020-10-14 14:28:55 +02:00
Jens Schauder
6a9aa51e55 DATAJDBC-349 - Polishing.
Original pull requests: #248, #242.
2020-10-13 13:54:37 +02:00
Jens Schauder
66e3ad9815 DATAJDBC-349 - Polishing.
Original pull requests: #248, #242.
Fixes superfluous commata and unsupported data types.
Cleaning up database objects before (re)creating them.
2020-10-13 13:54:15 +02:00
Myat Min
e26f6647da DATAJDBC-349 - Adds a unit test for the changes.
Original pull request: #242.
2020-10-13 13:53:54 +02:00
Yunyoung LEE
dc535e9791 DATAJDBC-349 - Apply JdbcConverter on reference ids.
Original pull request: #248.
2020-10-13 13:52:58 +02:00
Jens Schauder
1b1395ab73 DATAJDBC-430 - Polishing.
Renames *Bean annotation attributes to *Ref to match other similar attributes.
Removes additional arguments from constructors of public classes in order to avoid breaking the API.
Gathers application context configuration for StringBasedJdbcQueryMappingConfigurationIntegrationTests in a single java file.
Formatting.
Adds the author tag.
Changes default value of references to the empty String.

Original pull request: #249.
2020-10-12 17:16:37 +02:00
Hebert
c356a8ca41 DATAJDBC-430 Allow specification of rowMapperRef or resultSetExtractorRef as bean references.
This allows lookup of such beans by name, thereby allowing for full dependency injection support.

Original pull request: #249.
2020-10-12 15:05:24 +02:00
Mark Paluch
109adbcbf4 DATAJDBC-606 - Adopt to changes in Spring Data Commons.
Adopt to new mock requirements.
2020-09-22 16:24:56 +02:00
Mark Paluch
9cd8fc16b3 DATAJDBC-508 - Add support for @Value in persistence constructors.
We now evaluate @Value annotations in persistence constructors to compute values when creating object instances. AtValue can be used to materialize values for e.g. transient properties. Root properties map to the ResultSet from which an object gets materialized.

class WithAtValue {

	private final @Id Long id;
	private final @Transient String computed;

	public WithAtValue(Long id,
			@Value("#root.first_name") String computed) { // obtain value from first_name column
		this.id = id;
			this.computed = computed;
		}
	}
2020-09-22 11:48:56 +02:00
Mark Paluch
842a309f27 DATAJDBC-604 - Support empty IN lists.
We now support empty IN lists by rendering a condition that evaluates to FALSE using 1 = 0. For NOT IN, we render a condition that evaluates to TRUE using 1 = 1.
2020-09-22 09:58:10 +02:00
Mark Paluch
0713e5a048 DATAJDBC-590 - Prepare next development iteration. 2020-09-16 14:05:24 +02:00
Mark Paluch
25b8b7c909 DATAJDBC-590 - Release version 2.1 RC1 (2020.0.0). 2020-09-16 13:57:41 +02:00
Mark Paluch
8271aff800 DATAJDBC-571 - Prepare next development iteration. 2020-08-12 12:00:19 +02:00
Mark Paluch
6dccea722f DATAJDBC-571 - Release version 2.1 M2 (2020.0.0). 2020-08-12 11:52:05 +02:00
Mark Paluch
fc8d51cd3b DATAJDBC-586 - Guard JdbcRepositoryFactoryBean against setting null values for properties. 2020-07-30 16:43:12 +02:00
Mark Paluch
3ecfa669b7 DATAJDBC-576 - Polishing.
Consistent spelling of license. Tweak exception propagation. Consistently use asciidoc syntax for code blocks.

Original pull request: #239.
2020-07-17 10:02:22 +02:00
Jens Schauder
a0b5ddad8d DATAJDBC-576 - Control test execution with missing licence via profile.
Running all tests with

```
./mvnw clean install -Pall-dbs
```

or similar now requires an appropriate `container-license-acceptance.txt` to be on the classpath.

In order to ignore the tests that require an explicit license acceptance one may add the maven profile `ignore-missing-license` like so

```
./mvnw clean install -Pall-dbs,ignore-missing-license
```

Original pull request: #239.
2020-07-17 09:19:50 +02:00
Jens Schauder
2cf6efbe5c DATAJDBC-574 - Enables and fixes SqlServer tests.
Utilizes Testcontainers reuse feature.

Original pull request: #238.
2020-07-17 09:16:57 +02:00
Mark Paluch
d24ca640f7 DATAJDBC-573 - Polishing.
Remove unused imports, reformat code. Tweak logging.

Original pull request: #237.
2020-07-14 16:49:23 +02:00
Jens Schauder
1bfa629aa3 DATAJDBC-573 - Fixes the wait strategy for Oracle data sources.
Oracle integration tests where failing when the docker container was freshly started,
as it happens every time on CI.

The reason was mainly a misuse of Awaitility.ignoreException(Class) which only ignores exception of exactly the class provided, not of subtypes.

Apart from fixing this for Oracle the complete logic for verifying the connection was moved to DataSourceConfiguration so other database use it as well in a consistent manner.

Original pull request: #237.
2020-07-14 16:49:11 +02:00
Jens Schauder
c6c31dea48 DATAJDBC-569 - Removes unused TestDatabaseFeatures.
Original pull request: #236.
2020-07-14 16:41:26 +02:00