Commit Graph

268 Commits

Author SHA1 Message Date
Mark Paluch
015c358cee #249 - Updated changelog. 2020-01-16 16:05:01 +01:00
Mark Paluch
5f36404dd5 #277 - Introduce surrogate version property for Spring Data Relational. 2020-01-16 16:03:54 +01:00
Mark Paluch
5951df558c #234 - Enable building with JDK11. 2020-01-14 16:38:00 +01:00
Mark Paluch
6b9d834ba0 #274 - Upgrade to Spring Data Relational 2.0. 2020-01-13 14:55:33 +01:00
Mark Paluch
7ec3d28b17 #270 - Update copyright years to 2020. 2020-01-07 09:12:00 +01:00
sanghoon lee
e6bcc32197 #256 - Fix typo in readme.
modified a typing error
2019-12-12 15:30:59 +01:00
Mark Paluch
2b4244ec64 #252 - Polishing.
Remove unused code.
2019-12-09 10:48:08 +01:00
Mark Paluch
aea4f4e95c #252 - Fix EnumSet conversion.
We now convert properly collections of enum values for read and write.
2019-12-09 10:48:08 +01:00
Mark Paluch
507340ea48 #250 - Throw IllegalArgumentException in StatementMapper if UPDATE contains no assignments.
We now properly throw an IllegalArgumentException. Previously, the update object was attempted to being mapped and this failed as the update object was null.
2019-12-09 09:36:48 +01:00
Mark Paluch
85acdbbd9a #205 - Post release cleanups. 2019-12-06 11:24:35 +01:00
Mark Paluch
e8a9abcf94 #205 - After release cleanups. 2019-12-06 11:18:52 +01:00
Mark Paluch
7f2d8d2c03 #205 - Prepare next development iteration. 2019-12-06 11:18:51 +01:00
Mark Paluch
786c6354b9 #205 - Release version 1.0 GA. 2019-12-06 11:12:48 +01:00
Mark Paluch
d2f48e9466 #205 - Prepare 1.0 GA. 2019-12-06 11:12:46 +01:00
Mark Paluch
10f44c937d #205 - Updated changelog. 2019-12-06 11:12:46 +01:00
Mark Paluch
a1a217a34c #205 - Polishing.
Tweak javadoc and reference documentation.
2019-12-06 11:12:16 +01:00
Mark Paluch
f2a76fa74f #139 - Consider value type in Dialect-specific array type conversion.
We now inspect the value type of a SettableValue before attempting to convert a value into an array type. This check allows applying custom conversions to map objects to a simple type and bypassing the array conversion afterwards.

Previously, we just relied on the property type without checking whether the value qualifies for array type conversion.
2019-12-06 10:36:04 +01:00
Mark Paluch
96706cf7ed #205 - Remove sonatype snapshot repository.
No longer required.
2019-12-06 09:53:49 +01:00
Mark Paluch
d9e425ae17 #195 - Add test for Update with multiple assignments. 2019-12-06 09:41:18 +01:00
Mark Paluch
4558879f50 #245 - Upgrade to Spring Data Moore SR3. 2019-12-05 08:46:31 +01:00
Mark Paluch
2a52ce22fd #242 - Upgrade to R2DBC 0.8.0.RELEASE. 2019-12-02 16:38:14 +01:00
Mark Paluch
97ef1ed8b7 #244 - Add Reactor Checkpoint operator for SQL execution.
We now integrate with Reactor's checkpoint operator to include more information for debugging.
2019-12-02 11:12:59 +01:00
Mark Paluch
86ce98d08d #243 - Polishing.
Add author tags. Extend test. Reformat code.
2019-12-02 08:56:57 +01:00
Ferdinand Jacobs
38bbd4838e #243 - Add unit test for rowsUpdated.
rowsUpdated should always emit a single value.
2019-12-02 08:56:54 +01:00
Jens Schauder
887f0ae289 #237 - Polishing.
Removed superfluous package name from `@Query` usage.

Original pull request: #238.
2019-11-28 14:42:09 +01:00
Mark Paluch
ecc0fca306 #237 - Move @Query annotation to o.s.d.r2dbc.repository.
Original pull request: #238.
2019-11-28 14:41:57 +01:00
Jens Schauder
d442fca38d #235 - Polishing.
Added test and tweaked documentation to clarify that other numeric types beyond `Integer` are admissible.
Split a test in order to have meaningful test names.

Original pull request: #238.
2019-11-28 14:41:34 +01:00
Mark Paluch
6d37fde4c7 #235 - Add Modifying query annotation.
We now support returning the affected rows count for repository query methods that are annotated with the Modifying annotation. A modifying query method can return either the affected row count, a boolean value whether at least one row was updated or suppress value emission.

    @Query("UPDATE person SET firstname = :firstname where lastname = :lastname")
    Mono<Integer> setFixedFirstnameFor(String firstname, String lastname);

Original pull request: #238.
2019-11-28 14:33:38 +01:00
Mark Paluch
4801a4fbc2 #232 - Guard Repository.save(…) with provided Id with TransientDataAccessException if row does not exist.
We now emit a TransientDataAccessException if an object with a provided Id yields no affected rows. Such an arrangement is typically an indicator for a bug where calling code expects the object to be inserted with a provided Id.
2019-11-28 10:17:20 +01:00
Mark Paluch
701e696fc7 #242 - Build against R2DBC snapshots. 2019-11-27 15:26:06 +01:00
Jaeyeon Kim
b7ea3e6f1e #228 - Use consistently spaces instead of tabs in readme code samples. 2019-11-22 15:38:12 +01:00
Mark Paluch
cb1784f632 #239 - Add documentation for projecting repository query methods. 2019-11-22 15:36:22 +01:00
Greg Turnquist
d5fbf16a5c #236 - Enable artifactory-maven-plugin.
By adding an entry for pluginRepository pointing to https://repo.spring.io/plugins-release, Spring Data R2dbc should be able to successfully pull down the proper version of artifactory-maven-plugin.
2019-11-20 09:59:19 -06:00
Mark Paluch
cb0d59bf62 #234 - Simplify TravisCI build. 2019-11-13 13:58:24 +01:00
Mark Paluch
ea0d1cb32a #234 - Use inherited Jacoco version property. 2019-11-13 12:17:39 +01:00
Mark Paluch
b5db108c7a #204 - Polishing.
Fix unwrapping in CloseSuppressingInvocationHandler. Remove unused conditional branches.
2019-10-24 10:12:07 +02:00
Mark Paluch
b5ac43bd20 #204 - Add SingleConnectionConnectionFactory. 2019-10-24 10:11:10 +02:00
Mark Paluch
94c8f751a7 #212 - Polishing.
Consistently apply summing of updated rows. Tweak copyright years in license header to reflect file inception year.

Original pull request: #213.
2019-10-23 14:01:30 +02:00
pull-vert
2fac62a38c #212 - Provide Kotlin Coroutine extensions on UpdatedRowsFetchSpec.
Original pull request: #213.
2019-10-23 14:01:30 +02:00
Mirro Mutth
f1dbaabbec Upgrade to r2dbc-mysql 0.8.0 RC2.
Original pull request: #219.
2019-10-23 13:47:57 +02:00
Mark Paluch
c77534fa58 #216 - Fix subscription in ConnectionFactoryInitializer.execute(…).
ConnectionFactoryInitializer.execute(…) now calls .block() to subscribe to database initializer and database cleaner.

Previously, the resulting Mono wasn't subscribed to and the database was not initialized.
2019-10-20 14:11:04 +02:00
Mark Paluch
96de5d74a6 #209 - Polishing.
Update ticket reference in test.

Original pull request: #210.
2019-10-15 16:46:12 +02:00
Ibanga Enoobong Ime
bd2cc60480 #209 - Provide extensions on TypedExecuteSpec and GenericExecuteSpec.
The original extensions did not allow for executing fetch operations because they where on BindSpec.

Original pull request: #210.
2019-10-15 16:46:04 +02:00
Mark Paluch
6667f7a230 #208 - Upgrade to R2DBC Arabba RC2. 2019-10-07 11:58:05 -05:00
Mark Paluch
6f27bb7b58 #154 - Polishing. 2019-10-01 12:24:12 +02:00
Mark Paluch
ec5237f4ca #154 - After release cleanups. 2019-10-01 12:10:26 +02:00
Mark Paluch
57429f7239 #154 - Prepare next development iteration. 2019-10-01 12:10:26 +02:00
Mark Paluch
03187e56f0 #154 - Release version 1.0 RC1. 2019-10-01 12:08:00 +02:00
Mark Paluch
6d52ac7ff7 #154 - Prepare 1.0 RC1. 2019-10-01 12:07:58 +02:00
Mark Paluch
c3aadd6689 #154 - Updated changelog. 2019-10-01 12:07:58 +02:00