Commit Graph

633 Commits

Author SHA1 Message Date
Raphi
68c8a8a2dd DATAJDBC-610 - Provide arguments for log message in example.
Original pull request: #244.
2020-10-05 17:41:59 +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
38139d7d83 DATAJDBC-596 - Fix less-than comparator from ligature to less-than symbol. 2020-09-22 09:57:03 +02:00
Greg L. Turnquist
c41a1bb9c4 DATAJDBC-603 - Only test other versions for local changes on main branch. 2020-09-18 11:00:48 -05:00
Mark Paluch
80c3502350 DATAJDBC-590 - After release cleanups. 2020-09-16 14:05:28 +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
110fe70007 DATAJDBC-590 - Prepare 2.1 RC1 (2020.0.0). 2020-09-16 13:57:08 +02:00
Mark Paluch
ebbfbf3999 DATAJDBC-590 - Updated changelog. 2020-09-16 13:56:47 +02:00
Mark Paluch
00fc2377c4 DATAJDBC-591 - Updated changelog. 2020-09-16 12:16:32 +02:00
Mark Paluch
d8966b10ad DATAJDBC-581 - Updated changelog. 2020-09-16 11:20:08 +02:00
Mark Paluch
3e71eb27c7 DATAJDBC-580 - Updated changelog. 2020-09-16 10:38:56 +02:00
Mark Paluch
9c4753f3a5 DATAJDBC-598 - Adapt to changed Spring Framework CollectionUtils.
CollectionUtils.arrayToList(…) now returns List<?> which isn't compatible with Collection<Object>.
2020-09-09 13:58:01 +02:00
Mark Paluch
378736c92f DATAJDBC-582 - Updated changelog. 2020-08-12 13:25:49 +02:00
Mark Paluch
74954f6be2 DATAJDBC-571 - After release cleanups. 2020-08-12 12:00:22 +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
5f243074f0 DATAJDBC-571 - Prepare 2.1 M2 (2020.0.0). 2020-08-12 11:51:40 +02:00
Mark Paluch
bbf4e1e33b DATAJDBC-571 - Updated changelog. 2020-08-12 11:51:19 +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
08a2d39380 DATAJDBC-561 - Fix link to code of conduct. 2020-07-28 15:37:58 +02:00
Jay Bryant
253e25fadb DATAJDBC-583 - Wording changes.
Removed the language of oppression and violence and replaced it with more neutral language.

Note that problematic words in the code have to remain in the docs until the code changes.

Original pull request: #233.
2020-07-22 15:02:00 +02:00
Mark Paluch
58bf7ab1dc DATAJDBC-564 - Updated changelog. 2020-07-22 10:37:59 +02:00
Mark Paluch
7fec35fe1b DATAJDBC-563 - Updated changelog. 2020-07-22 10:08:44 +02:00
Mark Paluch
6c9868fec6 DATAJDBC-562 - Updated changelog. 2020-07-22 09:44:27 +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
Jens Schauder
0fe4f4f2f9 DATAJDBC-569 - Use JdbcUtils to obtain values from a ResultSet.
Original pull request: #236.
2020-07-14 16:41:17 +02:00
Mark Paluch
08d71817a9 DATAJDBC-572 - Polishing.
Reorder methods in EnableJdbcRepositories to match other stores. Reformat code.

Original pull request: #235.
2020-07-13 16:27:25 +02:00
Jens Schauder
d3f4bce539 DATAJDBC-572 - Enable specification of a repository base class.
Added the field to `EnableJdbcRepository` and respect it's value by instantiating the repository base class reflectively.

Original pull request: #235.
2020-07-13 16:27:16 +02:00
Mark Paluch
b28e4e07c6 DATAJDBC-256 - Polishing.
Rename RequiredFeature to EnabledOnFeature to align with JUnit terminology. Use RunWith instead of Spring rules. Reformat code. Update documentation.

Original pull request: #232.
2020-07-13 14:14:42 +02:00
Jens Schauder
4eb92abd8f DATAJDBC-256 - Run integration tests with Oracle.
An Oracle database is started in Docker using Testcontainers.
Tests that don't work yet are skipped using the TestDatabaseFeatures which allows central control, which database supports which feature.

A suitable oracle image is deployed on DockerHub as  "springci/spring-data-oracle-xe-prebuild:18.4.0".
 The official Oracle docker images as described here https://github.com/oracle/docker-images/blob/master/OracleDatabase/SingleInstance/README.md are not suitable since it needs about 15min to start and also TestContainers seems to break it by trying to us it to early.
 The referenced image was created based on these instructions: https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance/samples/prebuiltdb

The following features don't yet work for Oracle:

* Loading of date like properties.
* Ids with custom names.
* Array support.
* Boolean properties.
* BigDecimals and BigInteger is limited to what fits into Oracles NUMBER data type.
* Entities that use a join during load time, i.e. with a one to one relationship.

Original pull request: #232.
2020-07-13 14:11:48 +02:00
tlang
4238f44219 DATAJDBC-256 - First step toward running integration tests with Oracle.
Original pull request: #223, #232.
2020-07-13 14:11:43 +02:00
Jens Schauder
0c5a8c2b61 DATAJDBC-570 - Removes the AS for join table aliases.
The AS is not supported by Oracle and all other databases are fine without it.

Original pull request: #234.
2020-07-07 14:43:41 +02:00
Patrick Lucas
a5abd814b4 DATAJDBC-559 - Support MariaDB in DialectResolver.
Original pull request: #231.
2020-06-25 13:59:27 +02:00
Jens Schauder
6a4c4a1f15 DATAJDBC-559 - Upgrading the MariaDB JDBC driver.
This changes the behavior of the JDBC driver from always returning `MySQL` for product name to a more involved logic which might result in it returning  `MariaDB`.

Original pull request: #231.
2020-06-25 13:59:27 +02:00
Mark Paluch
d9f856702e DATAJDBC-541 - After release cleanups. 2020-06-25 11:58:22 +02:00
Mark Paluch
365f8483b3 DATAJDBC-541 - Prepare next development iteration. 2020-06-25 11:58:19 +02:00
Mark Paluch
6f9b9cbca6 DATAJDBC-541 - Release version 2.1 M1 (2020.0.0). 2020-06-25 11:48:49 +02:00
Mark Paluch
b2cdc000a4 DATAJDBC-541 - Prepare 2.1 M1 (2020.0.0). 2020-06-25 11:48:19 +02:00
Mark Paluch
363ce45db7 DATAJDBC-541 - Updated changelog. 2020-06-25 11:48:03 +02:00
Mark Paluch
9edac33912 DATAJDBC-540 - Updated changelog. 2020-06-10 14:30:57 +02:00
Mark Paluch
310bb0ae40 DATAJDBC-527 - Updated changelog. 2020-06-10 12:29:56 +02:00
Mark Paluch
0ff747223b DATAJDBC-525 - Updated changelog. 2020-06-10 11:33:15 +02:00