272 Commits

Author SHA1 Message Date
Greg L. Turnquist
f854728b16 Authenticate with artifactory.
See #571.
2021-04-22 15:41:45 -05:00
Greg Turnquist
12d62c7d75 #359 - Remove Travis CI. 2020-05-04 15:04:50 -05:00
Mark Paluch
7e817acca6 #310 - Fix bind marker reuse when expanding collection arguments using named parameters.
We now correctly reuse bind markers for named parameter substitution when using collection arguments to create dynamic argument lists. Previously, we allocated a new bind marker for each item in the collection which left the parameters intended for reuse unbound.
2020-02-19 12:02:55 +01:00
Mark Paluch
47374f690e #298 - Refine documentation regarding Converter behavior for collections. 2020-02-17 13:09:30 +01:00
Mark Paluch
5e3a7b089a #303 - Add note about boxed primitives when implementing custom converters. 2020-02-17 13:01:57 +01:00
Mark Paluch
a6d891093e #302 - Add documentation for entity-state detection. 2020-02-14 13:50:14 +01:00
Mark Paluch
79a1965364 #293 - Upgrade to R2DBC Arabba-SR2. 2020-02-03 09:05:55 +01:00
Mark Paluch
613b5ad8db #283 - Fix Id property and column name usage in SimpleR2dbcRepository.
We now use the Id property name when using the converter to map property names to column names. In other places, where we don't use the converter, we stick with the Id column name.
2020-01-23 09:57:42 +01:00
Mark Paluch
44447da722 #284 - Do not create PersistentEntity for UUID.
We now no longer create a PersistentEntity for UUID as UUID is a simple type and introspection on Java 9+ causes illegal access warnings.
2020-01-23 09:57:42 +01:00
Mark Paluch
d7da49e57b #270 - Update copyright years to 2020. 2020-01-07 09:12:01 +01:00
Mark Paluch
212d5dba58 #252 - Polishing.
Remove unused code.
2019-12-09 10:45:11 +01:00
Mark Paluch
bae189c729 #252 - Fix EnumSet conversion.
We now convert properly collections of enum values for read and write.
2019-12-09 10:44:42 +01:00
Mark Paluch
54b1ed0ba9 #205 - Enable Jenkins for 1.0.x branch. 2019-12-09 09:39:19 +01:00
Mark Paluch
5bbc6b066c #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:37:01 +01:00
Mark Paluch
4e81557cff #205 - After release cleanups. 2019-12-06 11:18:55 +01:00
Mark Paluch
2147b41df4 #205 - Prepare next development iteration. 2019-12-06 11:18:55 +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