Commit Graph

578 Commits

Author SHA1 Message Date
Mark Paluch
02ba403d07 Fix dynamic query method projection.
Query methods returning dynamic projections based on a Class argument now properly apply projection conversion. Previously, classes not seen by the mapping context were skipped and that caused projecting query methods to return the actual entity type.

Closes #607
2021-06-22 11:22:12 +02:00
Mark Paluch
b8709a6824 Polishing.
Rename method to renderForGeneratedValues to reflect its intended usage and enhance documentation.

Tweak Javadoc.

Closes: #483
Original pull request: #602.
2021-06-11 08:37:29 +02:00
Jens Schauder
1119833c54 Registration of columns for generated keys is now dialect dependent.
Different R2DBC drivers expect generated keys when they are in camel case to be quoted or unquoted.
This can now be controlled by implementing `Dialect.renderForGeneratedKeys`.

Closes: #483
Original pull request: #602.
2021-06-11 08:27:48 +02:00
Mark Paluch
c8122a9b41 Refine conversion directions between boolean and byte using MySQL/MariaDB.
ByteToBooleanConverter is now marked as reading converter and we've added a writing converter with BooleanToByteConverter to ensure proper conversion. Previously, all byte values were converted to boolean resulting in data precision loss.

Closes #589
2021-05-19 10:37:47 +02:00
Mark Paluch
f1ac5bae56 Updated changelog.
See #582
2021-05-14 12:36:36 +02:00
Mark Paluch
fe512cfb25 After release cleanups.
See #581
2021-05-14 12:05:20 +02:00
Mark Paluch
d7e5ada2a4 Prepare next development iteration.
See #581
2021-05-14 12:05:16 +02:00
Mark Paluch
f902c9f4dd Release version 1.2.9 (2020.0.9).
See #581
2021-05-14 11:52:23 +02:00
Mark Paluch
0251465c87 Prepare 1.2.9 (2020.0.9).
See #581
2021-05-14 11:51:53 +02:00
Mark Paluch
64ab2c50d0 Updated changelog.
See #581
2021-05-14 11:51:47 +02:00
Mark Paluch
785b664a95 Upgrade to R2DBC Arabba SR10.
Closes #597
2021-05-14 11:22:38 +02:00
Mark Paluch
78eba8611d Polishing.
Introduce assertions for OutboundRow.

Closes #593
2021-05-04 08:53:19 +02:00
Mark Paluch
2e116df224 Correctly translate absent convertible enum values to String[] using Postgres.
We now correctly obtain the target type for a persistent property that should be converted into an array value prior to constructing Parameter.
Previously, we fell back to the actual type without considering potential converters which left collection-like enum properties without a value with the enum array type that was potentially not supported by the database driver.

Closes #593
2021-05-04 08:53:12 +02:00
Mark Paluch
3513c45b4b Upgrade to MySQL 8.0.
Switch to a newer MySQL version to use TLSv1.2 as newer JRE versions no longer support TLSv1/TLSv1.1.

Closes #594.
2021-05-03 15:03:09 +02:00
Mark Paluch
5363184c1a Remove Jasync from tests.
Jasync does not support MySQL's 8.0 caching_sha2_password and there are no plans to support it.

See #594.
2021-05-03 14:57:15 +02:00
Greg L. Turnquist
9e1e0eccd9 Authenticate with artifactory.
See #571.
2021-04-22 15:23:36 -05:00
Mark Paluch
c6da8dae04 Polishing.
Add unit test.

See #587.
2021-04-22 11:48:40 +02:00
Grayswan4
0ced1692ae PreparedOperationBindableQuery.bindNull(…) should call bindSpec.bindNull(…).
The wrong call is not caught by the compiler due to a bind method that has a signature of (String name, Object value).
Previously, bindNull(…) called bind(…).

Closes #587.
2021-04-22 11:48:40 +02:00
Mark Paluch
ae2704876b Eagerly check for custom converters when reading rows.
We now eagerly check for the presence of custom converters, before attempting to materialize a nested entity when reading a Row.

Closes #585
2021-04-21 09:21:13 +02:00
Mark Paluch
2584d5936b Updated changelog.
See #571
2021-04-14 14:40:00 +02:00
Mark Paluch
88e661667d After release cleanups.
See #572
2021-04-14 11:42:08 +02:00
Mark Paluch
e1b2280fbb Prepare next development iteration.
See #572
2021-04-14 11:42:04 +02:00
Mark Paluch
6a9b51764d Release version 1.2.8 (2020.0.8).
See #572
2021-04-14 11:33:25 +02:00
Mark Paluch
a3a0b38008 Prepare 1.2.8 (2020.0.8).
See #572
2021-04-14 11:32:47 +02:00
Mark Paluch
ca1292acf7 Updated changelog.
See #572
2021-04-14 11:32:42 +02:00
Mark Paluch
ae4e53dbce Updated changelog.
See #563
2021-04-14 11:17:40 +02:00
Mark Paluch
eb42ed5ea5 Include Entity-state detection documentation snipped from Commons.
Closes #579
2021-04-13 15:20:45 +02:00
Mark Paluch
3ce65fa267 Update CI jobs with Docker Login.
See #509
2021-04-13 15:05:59 +02:00
Mark Paluch
6175297bff Polishing.
Reformat integration test.

See #573
Original pull request: #574.
2021-04-06 13:00:28 +02:00
AbstractCoder
ea2b1f2e25 Add Interval to Postgres simple types.
io.r2dbc.postgresql.codec.Interval is now considered a simple type.

Closes #573
Original pull request: #574.
2021-04-06 13:00:28 +02:00
Mark Paluch
ec1d583469 After release cleanups.
See #564
2021-03-31 18:29:41 +02:00
Mark Paluch
4fdf5230e6 Prepare next development iteration.
See #564
2021-03-31 18:29:38 +02:00
Mark Paluch
eb56dae2dc Release version 1.2.7 (2020.0.7).
See #564
2021-03-31 18:19:52 +02:00
Mark Paluch
0d66b3f75a Prepare 1.2.7 (2020.0.7).
See #564
2021-03-31 18:19:19 +02:00
Mark Paluch
f2c66cbad9 Updated changelog.
See #564
2021-03-31 18:19:13 +02:00
Mark Paluch
f63108a2c8 Updated changelog.
See #562
2021-03-31 17:26:05 +02:00
Mark Paluch
f5489f2a77 Update version suffix scheme in readme.
Closes #568.
2021-03-22 10:26:48 +01:00
Mark Paluch
a394509b3c Update R2dbcEntityTemplate.selectOne() mentioning IncorrectResultSizeDataAccessException.
Closes #566
2021-03-18 09:54:50 +01:00
Mark Paluch
154b9ef725 Updated changelog.
See #541
2021-03-17 11:31:29 +01:00
Mark Paluch
cd922dc777 After release cleanups.
See #543
2021-03-17 11:02:15 +01:00
Mark Paluch
e77f8d8dc7 Prepare next development iteration.
See #543
2021-03-17 11:02:13 +01:00
Mark Paluch
d9715297c3 Release version 1.2.6 (2020.0.6).
See #543
2021-03-17 10:54:12 +01:00
Mark Paluch
cf968d3bfb Prepare 1.2.6 (2020.0.6).
See #543
2021-03-17 10:53:43 +01:00
Mark Paluch
d11001545a Updated changelog.
See #543
2021-03-17 10:53:39 +01:00
Mark Paluch
21c55f7724 Updated changelog.
See #539
2021-03-17 10:35:12 +01:00
Mark Paluch
690c693c9c Polishing.
See #557
2021-03-17 09:05:03 +01:00
Mark Paluch
5a024fb3fe Move default Id value cleanup on insert from Converter into R2dbcEntityTemplate.
We now check in R2dbcEntityTemplate whether we need to skip the Id value if its value is null or a primitive using its default. Previously, the check was located in the converter. Converting an entity afteri ncrementing the version of a versioned entity would write the Id value as the entity was no longer considered to be new.

Closes #557.
2021-03-17 09:05:02 +01:00
Mark Paluch
fab6d76721 Polishing.
Make count assertions case-insensitive regarding the count column name. Add missing license headers. Support DatabaseContainer without a database name.

See #230
2021-03-15 10:20:38 +01:00
Mark Paluch
8f97d37558 Add support for Oracle's R2DBC driver.
We support Oracle's experimental R2DBC driver by providing a dialect including bind markers. Since the driver is not yet available from Maven Central and it requires module-path support for ServiceLoader discovery, we need to apply a few workarounds including absence check for our integration tests.

See #230
2021-03-15 10:20:38 +01:00
Mark Paluch
23c14af294 Call Statement.returnGeneratedValues(…) using the ID column name.
We now call Statement.returnGeneratedValues(…) with the primary key column name to ensure consistent behavior across all drivers and to avoid non-portable behavior.

Closes #558
2021-03-15 10:20:37 +01:00